Select the image and the value as an icon

Hello!

I want to put an image of selected image using the file.browse in an AIR application to be the icon of a button.

My question is what kind of type what I'm supposed to cast for does not throw an exception?

If I do:

myBtt.setStyle ('icon', pathToImage); does not work

myBtt.setStyle ('icon', imageVariable); / / the class picture, still does not work.

How can I do it please?

Thank you!

To my knowledge, an icon for a button must be of type class. You can do this in run mode, or it is not as simple as that.

You can find a few topics on this property. Take a look on:

http://blog.benstucki.NET/?p=42

Hope this helps,

Dany

Tags: Flex

Similar Questions

  • Impossible to select the value from the search screen (quick select, then) on OFA

    Hello

    We have a problem with a user who are not able to select any value from the LOV on any page of the Oracle.

    1. click the button of LOV

    2. search + go

    3. Select or quick selection nothing happens (error on the Page appears in the left corner of the homepage)

    4. only cancel works.

    Any suggestion would be appreciated.

    I saw a similar question posted Impossible to select the value from the search screen (quick select, then) on OFA

    But unfortunately this is not the answer.

    Thank you

    Sam

    Display of the solution to help others. I tried to connect a SR and suddenly a pop Note ups that helped.

    The problem is related to the profile "Self Service Accessibility Features" customer has defined for the user concerned.

    Follow these steps:

    1 change the value of 'None' profile at the user level.

    2 disconnect / connect to the application and testing.

    See you soon.

  • Simply select the values between min and max of a value accumulated during the day

    Hello Forum,

    a value is accumulated more a day and over a period of time. The next day, the value is reset and starts to build up again:
    with sampledata as (select to_date('09.09.2012 00:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 01:03:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 02:54:11', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 03:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 04:04:19', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 05:04:20', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 06:12:02', 'dd.mm.yyyy hh24:mi:ss') ts, 23 val from dual union all
                       select to_date('09.09.2012 07:12:03', 'dd.mm.yyyy hh24:mi:ss') ts, 29 val from dual union all
                       select to_date('09.09.2012 08:12:04', 'dd.mm.yyyy hh24:mi:ss') ts, 30 val from dual union all
                       select to_date('09.09.2012 09:12:11', 'dd.mm.yyyy hh24:mi:ss') ts, 45 val from dual union all
                       select to_date('09.09.2012 10:12:12', 'dd.mm.yyyy hh24:mi:ss') ts, 60 val from dual union all
                       select to_date('09.09.2012 11:12:13', 'dd.mm.yyyy hh24:mi:ss') ts, 75 val from dual union all
                       select to_date('09.09.2012 12:21:24', 'dd.mm.yyyy hh24:mi:ss') ts, 95 val from dual union all
                       select to_date('09.09.2012 13:21:26', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 14:21:27', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 15:21:30', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 16:21:32', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 17:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 21:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 23:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 00:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 01:03:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 02:54:11', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 03:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 04:04:19', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 05:04:20', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 06:12:02', 'dd.mm.yyyy hh24:mi:ss') ts, 14 val from dual union all
                       select to_date('10.09.2012 07:12:03', 'dd.mm.yyyy hh24:mi:ss') ts, 34 val from dual union all
                       select to_date('10.09.2012 08:12:04', 'dd.mm.yyyy hh24:mi:ss') ts, 58 val from dual union all
                       select to_date('10.09.2012 09:12:11', 'dd.mm.yyyy hh24:mi:ss') ts, 70 val from dual union all
                       select to_date('10.09.2012 10:12:12', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('10.09.2012 11:12:13', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 12:21:24', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 13:21:26', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 14:21:27', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 15:21:30', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 16:21:32', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 21:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual)
    select   ts, val
    from     sampledata
    order by ts asc;
    How should I change the select statement to ignore all data sets before the first minimum and duplicates after the maximum of a day to get such a result:
    TS     VAL
    09.09.12 06:12     23
    09.09.12 07:12     29
    09.09.12 08:12     30
    09.09.12 09:12     45
    09.09.12 10:12     60
    09.09.12 11:12     75
    09.09.12 12:21     95
    09.09.12 13:21     120
    09.09.12 14:21     142
    10.09.12 06:12     14
    10.09.12 07:12     34
    10.09.12 08:12     58
    10.09.12 09:12     70
    10.09.12 10:12     120
    10.09.12 11:12     142
    10.09.12 12:21     153
    Thank you

    Hello

    msinn wrote:
    Hello Forum,

    a value is accumulated more a day and over a period of time. The next day, the value is reset and starts to build up again:

    Thanks for posting the sample data and results. Be sure to explain how you get these results from these data. For example "for each day, I just want to show the lines after the daily low was reached. For example, on September 9, the lowest val was 23, which occurred at 6:12, so I don't want to show all lines earier to 06:12 September 9. In addition, when a val is the same as or more than the previous same day val (in order by ts), then I don't want to display the line later. For example, on 9 September, there are several consecutive lines, starting at 14:21 which all have the same val, 142. I want to only display the ealiest of this group, the line of 14:21. »

    Here's a way to do it, using analytical functions:

    WITH   got_analytics     AS
    (
         SELECT  ts, val
         ,     MIN  (val) OVER ( PARTITION BY  TRUNC (ts)
                                  ORDER BY       ts  DESC
                        )      AS min_val_after
         ,     CASE
                  WHEN  val = MIN (val) OVER (PARTITION BY  TRUNC (ts))
                  THEN  -1    -- Impossibly low val.  See note below
                  ELSE  LAG  (val) OVER ( PARTITION BY  TRUNC (ts)
                                              ORDER BY         ts
                               )
              END      AS prev_val
         FROM    sampledata
    )
    SELECT       ts
    ,       val
    FROM       got_analytics
    WHERE       val     <= min_val_after
    AND       val     >  prev_val
    ORDER BY  ts
    ;
    

    This requires that val > = 0. If you don't know a lower bound for val, and then the same basic approach still works, but it's a bit messier.

  • Select the value inside the digital

    For more convenience, I would that the behavior of my digital controls for automatic selection the entire value when I click on the control.  So when it gets the focus, the value should be selected.

    I don't see a way to do this.  Any ideas?  The increment on a digital buttons will select, but these data types that I put to float.  Then increment does not much sense.  In my case, I the user perforation in values with the keyboard.  It would be nice to not have to select the 0.000 already present before data entry.

    Thoughts?

    @gdargaud: with a small modification of your idea can work!

    Just to simulate a House + shift - end event to select text:

    	If (event == EVENT_GOT_FOCUS) {}
    FakeKeystroke (VAL_HOME_VKEY);
    FakeKeystroke (VAL_SHIFT_MODIFIER |) VAL_END_VKEY);
    }

    This is valid for text and digital controls.

  • Popup LOV selected the value not in session state

    I have a pop LOV element on a page in my application.  Once the item has been selected in the list presented, I would like to use as part of a select statement.  Select statement failed.  It turns out that the value I want the popup THAT LOV is not being saved in session state, so of course the select statement fails.  I determine this by clicking on the session menu item in the developer bar - the item itself presents itself, but the value is empty.

    What would cause a popup LOV value choice not finish by in session state, and how do I make sure he gets there?

    Thank you!

    If you need the value in a SQL report, you can just set "Elements of Page to submit" in your report to your LOV element definition. Otherwise, create a dynamic fire action when your LOV is changed with a set of pl/sql null process action; then set Page elements to send to your LOV element.

    Alternatively you could do it manually with your own function/Manager javascript using the '$s' Apex API by creating a dynamic action that JavaScript is triggered then the loading of the page:

    $("#PXX_YOUR_LOV").on('change',function(){
      var getValue=$(this).val();
      $s('PXX_YOUR_LOV', getValue);
      });
    

    Changing the value in LOV only updates the HTML code, the element must be submitted to the server so that the value that will be put in session state. The gurus can explain more, but the above methods are what I use depending on the situation.

    see you soon,

    John

  • Select the value of the xml string property where certain conditions

    Hi, I'm on 11.2.0.2 and just started with XPath. "got the string xml like this: [code]"

    "[code] should output jdbc.schema password - User1, User2 user101 user201 tried: select x.schema_name, obpmdir.test x.password t, xmltable ("for $i in property/configuration/set return {$i/@name}' from xmltype (t.fuego_strvalue) schema_name varchar2 columns (1234) PATH 'value', password varchar2 (1234) PATH 'value') x; " has received the error: ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name: 19276 (value). 00000 - "XP0005 - XPath step specifies an invalid element/attribute name: (%s) ' * Cause: step the XPath specified is not a valid element or the attribute name that does not match all nodes according to the entry or the structure XML schema. * Action: Correct the name of element or attribute name may be misspelled. Regards Greg

    See my first example here in response to your previous question: update the values of string xml.

    BTW, to format your code, go to the so-called 'Advanced Editor ' and choose the formatting that you want in the menu behind the > icon.

    Note that, as of now, none of the available options are really satisfactory to shape the code because he doesn't use fixed-width fonts.

    Personally, I manually change the font "Courier New" and apply the effect 'Quote' for formatting my code snippets, that mimicks a little previous rendering allows us to get through the {code} tags (before the migration of the forum).

  • Select the value equal to the table

    I use Dreamweaver CS5 with PHP and a MySQL database.  I'm reading from a table (states []) in the database that list all States an entrepreneur might work to, that is, WA, ID, OR... my record of the insert is savaing my table with the abriviations of State with the coma in the meantime without space, which is fine with me.  My code for the insert recording is:

    If (isset($_POST['states'])) {}

    $_POST ['States'] = implode (',', $_POST ['states']);

    } else {}

    $_POST ['States'] = null;

    }

    To test what must be my result, I tried to hard-code the value for area WA selection that selects the WA (Washington) very well in the dynamic list/Menu. The checkbox allow multiple selections is selected for this list/menu.  When I try to hardcode several States like WA, ID, nothing is selected.  I also tried selecting WA ID and WAID.  What is the correct format of the select value equal to in order to select multiple items.

    Once the coding is figured out I was going to try to understand how to navigate in PHP and do select dynamically recording and echo (or otherwise print) in the right format for several States in the table would be selected.  However, if anyone out there has a sample, that would be great.

    Thank you in advance for your help!

    Darren

    First and perhaps that I read it wrong, but 'implode' in your example should not "explode" because you have the array, but you want to get the values out of it?

    Now I know that my next suggestion is not what you want to hear, but I used to think like you and store things in a table, a table in a loop and then try to check the loop if some values exist.  However, as time has taught me it is not necessarily the best way to store values you need for this type of proceeding.  Most of the time in cases like this, your username will seek entrepreneurs in a specific State.  So what I recommend is to create another table with 2 columns:

    contractor_id (a way to identify the contractor, it will be a primary key, which will connect a key for the "contractor_id" in your original table)

    contractor_state (this allows to link an id to a State)

    A single loop would be to query the status of the contractor, the contractor ID is filled and you can run a join to remove the door contractor while the ID condition is met.  The flip side is to get all the contractor IDs meet the criteria of the State.  You must perform a JOIN on the request to combine the original with this new table table if you want to remove the name of the contractor as well as the State didn't give one example.

    Perhaps a good article that you want to read is the first response of this StackOverflow question and the link in the response are talking about standardization and serialization of data:

    http://StackOverflow.com/questions/1790481/PHP-MySQL-storing-array-in-database

  • Submit after selecting the value of Popup LOV

    Anyone know if it is possible to make the Popup LOV behave as the list select and resubmit the page after selecting a value?

    The Select list has an additional attribute in properties named "Page Action times changed value". One of the options for this attribute is "submit Page". This attribute is not available for Popup LOV, but I would like to be able to create the same behavior. The number of values that might be returned for this article is too many to use a Select list...

    I think I might be able to add a bit of Javascript somewhere and do a "onChange.submit ()" or something like that, but I'm not sure of the syntax, or where to put it.

    Any help gratefully received...

    TIA,
    Eric

    Hello Eric,

    Create a "dynamic Action" that fires when the value of Popup LOV is changed and set the Action to "submit Page".

    Thank you
    Machaan

  • Retrieve selected the value of LOV

    Hi friends,

    I have a query on the value selected LOV.

    I have two fields in my form called Dimension and indicator. We have the table associated with these two fields, DIMENSION_TABLE and INDICATOR_TABLE.

    The field two Dimension and indicator are filling the table DIMENSION_TABLE and INDICATOR_TABLE lov. Assume that the user has selected 'ABC' as a value

    dimension field LOV and 'XYZ' indicator field lov. Before submitting this user page is by clicking the search button in the page of the form. Then click on the button Search

    a pop up window should open that list down the records of database on the basis of LOV of Dimension selected and indicator which is submitted allread. ex: id-1 indicator of Dimension-ABC-XYZ, id-2 size-ABC indicator-XYZ, id-3 Dimension-ABC indicator-XYZ. Like this.

    Need help on this. Thanks in advance

    Concerning

    You want the whole 9 yards after all.

    Your Page 8 application should look like

    select dimension_table.dimension, dimension_table.indicator
    from dimension_table
    where dimension like nvl(:P8_DIMENSION,'%')
    and indicator like nvl(:P8_INDICATOR,'%')
    

    In the calling Page (say 1) that has the lists to select, on the second lists (supposed P1_INDICATOR) add the following line to the attribute of the element

    onchange="setVal();"
    

    In the call header pages updated HTML code below

    
    

    Now, create an OnDemand application process and insert the following code into it

    declare
      p_x01  varchar2(1000) := apex_application.g_x01;
      p_x02  varchar2(1000) := apex_application.g_x02;
    begin
      :P8_DIMENSION := p_x01;
      :P8_INDICATOR := p_x02;
      htp.prn('');
    end;
    

    You may experience problems of closure of the modal popup. For soolution search this forum.

    Kind regards

  • Select the value in the drop-down list ADF/JSF without command button

    Hello

    My request is constructed using ADF and JSF (and JDev 10.1.3) and the form of a table with 2 drop downs. When the user selects a value in the first descent down, the program should go to the database and extraction of valid values for the second drop-down list. This is the case on the selection of the value in the drop-down and the user should not be required to click on any button command like 'Go' or ' Submit'

    I'm new to JSF/ADF. How to get there? Any body there the code examples for this?

    Thank you

    http://tinyurl.com/ygnvl87 :D

    John

  • Select the value of list view

    Hi all
    Does anyone know how to make a ReadOnly list select and display the display value not the return value when you change the data? I made the list select a text field, text box, etc... but the return value is displayed and not the display value. I don't want my end users to edit the article, but I don't want to show them the value of display. Ideas and help is appreciated, thanks.

    Hello

    As you do not want your users to change the item, could you not use one of these 'View text (based on LOV)' instead?

    Andy

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • Select the values from the list

    All,
    I need help for this task.
    I have a Select list element with display value (names emp) real values(emp ID) /LOV now I want to complete the following text items (Dept, location, wages etc.) based "names of emp" I took from the list select... any help? Thanks in advance.

    Hello

    The simple way is:

    1. change select list property settings: action, highlighted Page changed: "Send Page".
    2. write a process on submit, type pl/sql, then fill the (Dept, location, salary, etc) with the select query where condition check for emp_id =: Select_list name.
    set the condition for the process while it is called when a user selects the name of the employee.

    THX
    MK

  • Adobe Stock: how to select several images, and then go to visit once to complete my purchase?

    Hi, my question is on Adobe Stock. I have around 5-6 images I want to acquire from Adobe. I have them stored in the library. I want to buy with 50% reduction of single image. However, I discovered that I can't select some images at a time and put them in my cart. I can only check a single image and it go directly to the outside to check for billing. So my question is how do I check all the images I want to buy and go at once to complete, instead of doing all over again for 5 different billing transactions. Please help, thanks in advance.

    Hi Fillingf,

    You are trying to get the images with the single image plane, it will allow you to authorize a single image at a time.

    So for the first time(first image), it will ask you the payment information. Next image, it will automatically process the order with previous payment information.

    In addition, you can get a comprehensive plan like 10 pictures per month or 750 images a month, you will be charged for the subscription and the licenses will be added for you can use to acquire the images.

    I hope this helps.

    ~ UL

  • BlackBerry smartphones selects all images and songs in the media...

    Hello Sir,

    How to select everything or mark all photos and songs in the media to send or delete... Please help...

    You must connect your device using Desktop Manager using USB/Bluetooth. And then remove/add as needed.

Maybe you are looking for