How to set first Item in combobox

Hi all,
I am struggling to find out how to set the first item of the
combobox as say "Select" because the fields i display in the
combobox
are optional for the user to select.
I have in the dataprovider of combobox set to an
arraycollection populated by a call to fill method.
But these items should be displayed below "Select".
Can anyone help me on this.
Thanks,
Lakshmi

Hi
Try
yourcomboxox.prompt = "Select";
yourcombobox.selectedIndex = -1;
http://livedocs.adobe.com/flex/201/langref/index.html?mx/controls/ComboBox.html&mx/control s/class-list.html
HTH
John

Similar Messages

  • Strange Case..!! How 2 set an item as a master block to it's db items block

    Hello All,
    i have a question pls.
    ================
    How 2 set an item as a master block to it's related db items in the same data block; as follows:
    ============
    1-i have to enter the item's value ('LAB_TEMP' ) once then;
    2-the other related items in the same data block r changed record each time i navigate to the next record but this item is never changed in this case only if i re-entered another value as (master-detailed rel.). i tried to copy the value of this item to a display item called 'Temp' but it is changing according to the records frequency by default
    ===========================================================
    I tried the following code on when-new-record-instance & on post-changed Triggers as follows:
    ============================================================
    IF :LAB_TEMP IS NOT NULL THEN
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_FALSE);
    :TEMP := :LAB_TEMP;
    ELSE
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_TRUE);
    :TEMP := :LAB_TEMP;
    END IF;
    ============================================================
    even this generates unable to set enable property or visible prop. error
    ====================================================
    Someone help me with this pls.??
    ========================
    Thanks in advance,
    Regards,
    Abdetu..

    Hello everyone,
    This issue was solved as:
    ==================
    1-i created a separate db block
    2-created a text item called 'TEMP' with db=NO
    3-In the db block that i want to deal with it as:Master item to it's other related detailed items to that item which is called 'LAB_TEMP' ;
    * Copy value from property: TEMP.
    By this way i could entered a value i the ndb item called TEMP once & consequently this value is entered copyed 4 each new record i entered.
    This is an intial solution works fine at least 4 now, a Fried helped me with this i would like 2 share this info 2 others may be a new idea would help...
    Thanks always,
    Abdetu..

  • How to set an item when I redirect using OWA_UTIL.redirect_url

    I am using OWA_UTIL.redirect_url to redirect users.
    but I am lost in how do I set an item doing this. I have an item called :P101_MSG and I want to set it to 1.
    I added &:P101_MSG=1 this: OWA_UTIL.redirect_url ('f?p=&APP_ID.:101:&SESSION.*&:P101_MSG=1* ');
    but that was wrong.
    Can someone tell me the syntax to set P101_MSG=1 when I redirect.
    Howard

    Hi
    I'm not quite sure of what you're doing or where you are but this isn't how you set APEX items in the URL.
    See this example
    f?p=:&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::P1_ITEM1,P1_ITEM2:A,BThis sets item1 = A and item 2 = B.
    Is this what you mean (make sue you get the number of colons correct...
    Cheers
    Ben

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • How to set First Play

    Hey all,
    For the life of me I can't figure out how to set 'First Play', I'm not even sure why you have to but I know I need to and I can't find a 'First Play' button, tab or anything.
    Thanks!
    Ted

    http://www.google.com/#hl=en&expIds=17259,23756,24472,24692,24815,24878,24879,26 637,27087,27113,27147,27156,27196,27218,27357&sugexp=ldymls&xhr=t&q=howto+set+the+first+play+in+DVD+Studio+Pro&cp=43&pf=p&sclient=psy&aq=f&aqi=&aql=&oq =how+to+set+the+first+play+in+DVD+StudioPro&gs_rfai=&pbx=1&fp=2304850557947867

  • How to get first item of hashMap w/out knowing the key

    Hi
    can someone tell me if there is a way to get first item from a hashMap when you dont know what the key is. as the get method expects a defined 'key'
    reason I am asking this:
    I am using struts 2 UI <s:radio> tag. this tag takes a hashmap and creates radio maps. it has a 'value' attribute and if something is passed to this attribute then that radio button is checked by default. the list that contains radio buttons is created dynamically so i dont know what is actually in the hashMap key's. but i do know that key's are string.
    so just wondering if there is a way to get first item from a hashmap without knowing the key...

    thanks for the quick reply.
    posted in java forums because thought it was a java API/workaround question. gave a little history because i didnt want people to start questioning my use of HashMap for this purpose..
    anywhose..i've found a workaround.
    If someone has a similar problem:
    as the hashmap is being populated dynamically....set a String member of class to contain the first key thats being put in the hashmap. then have struts tag pick up that value.
    also, through your post and reading hashMap api...its usefull to know that hasMaps do not gurantee the order of elements in it. So now I am using a TreeMap.
    Thanks

  • HOW TO SET A ITEM DEFAULT VALUE  to today

    I have a item using select list and I like to set this item default value as
    today's date , such as "select to_char(sysdate,'YYYY-MM-DD') from dual"
    HTMLDB failed recongnize the default value, or throw error Error ERR-9132 Error in PLSQL expression for item default code, ...". I have tried each of 3 avaialable Default Value Types
    Per http://forums.oracle.com/forums/thread.jspa?messageID=443287, it is used to be doable, but the default value type (sql) is no longer avaialble in HTMLDB 2.0
    I would appreaciate it very much if anyone has successfully done this before, either set to today or current month

    Ching - Did you try a PL/SQL Expression using to_char(sysdate,'YYYY-MM-DD')?
    There have been no changes to the item default types available in HTML DB. The thread you referenced is for Oracle Portal, a separate and unrelated product.
    Scott

  • How to set active item in a static combobox

    How can I set a specific item as the current item in a static
    combobox? Can't seem to find the right property/method for
    it.

    I know this is an old posting but the solution here dosen't
    seem to work on the fly.
    What I mean is I've created back and forward buttons to
    enable an alternative selecting method to display impoted swf's.
    I want to update the comboBox display to match the sequence
    that occurs by using the forward and back buttons.
    I have done this in Javascript but don't know how to in Flash
    8
    Thanks Rick

  • How to set alternative items ?

    Hi all ,
    i create the sales order document. If the Order Qty > Available QTY it will show item availability check. I want to set Display alternative items. But how can i set the alternative items first in SAP ?
    Thanks in advance
    Regards
    KK

    Hi Gordon,
    Do you know which template to use to import Alternative Items?
    Kind regards,
    Greeshma

  • How to set selected item of SelectOneMenu

    HI,
    I want to manually set the selected item of SelectOneMenu, can anyone tell me how can I do?
    Below is my code:
    <h:selectOneMenu binding="#{Monitor.dropdown1}" id="dropdown1" onchange="submit();" valueChangeListener="#{Monitor.pageItemsValueChange}">
        <f:selectItems binding="#{Monitor.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{Monitor.pageItems}"/>
    </h:selectOneMenu>I tried to use dropdown1.setValue to set it, but I wonder which class type I can use.

    Initialize the value to the value you want to select:
    <h:selectOneMenu id="model" value="#{SearchVehicle.modelField}">
    <f:selectItems value="#{SearchVehicle.models}"></f:selectItems>
    </h:selectOneMenu>public class SearchVehicle{
    private String modelField = "XYZ";
    }

  • GI:How to set Indicator:Item Not Relevant for Goods Movements LIPS-NOWAB

    Hi,
    does anybody know what i have to do to get the Indicator: Item Not Relevant for Goods Movements set for a good issue delivey position? (Table LIPS field NOWAB)
    thanks in advance
    Steffen

    Hi,
    the thing is the following (maybe it doesn't work at all, i don't know) :
    a) i have a "Non-stock" material (e.g.material type NLAG)
    b)this material should be picked, so it should be relevant for the delivery (e.g.item category TAX)
    c) for a special reason the "Total goods movement status" in the outbound delivery header shouldn't be "Not relevant", therefore i assigned the item category TAX to a shedule line category that has a movement type (e.g. CN)
    d)but the bad thing is, that the customer has set the indicators "quantity updating" and "value updating" for the material type NLAG, and so the goods issue posting gets some errors. eg.g missing storage location etc.)
    During debugging i found a coding that checks the sign NOWAB of lips, the documentation says:
    "You can use this indicator to control whether the item is relevant for goods movement when the delivery is still being created.
    When this indicator is set, goods movement is not posted for this item - regardless of the movement type assigned  to it."
    So i head the idea it might be possible to set this indication (Lips-nowab) somewhere in the sales order or somewhere else but maybe this conflicts with point c) above .
    Maybe shomeone knows what to do or has a better idea.
    Best regards
    Steffen

  • How to set Lov item property (Action type,event,parameter etc) in PR when page load

    Hi gurus
    I am new to OAF, First I need to explain my scenerio.
    I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list).
    for this i extended the controler and apply the changes, but in this case what heppen, It will effect only when i open the list (pop list) and click on more (Available in poplist) and it will open a new form and i select value from that form. But when I open the poplist and select the value from the same list rather going to more option (it does not open new form), then there are no effect. I though the issue with refreshing when selecting value from the same list.
    To resolving this issue what i did
    1. go to page == > the same LOV
    2. Change the Client Action properties (
         Action type  = fireAction
         event          = xxevent
        submit = true.
    After doing this when i run the page from my OAF enviroement , every thing is OK. Then I transfer the Controler to Server machine and change the controller and run the same page from the server, it has the same refreshing issue, Then I thought because I did not transfer LOV such properties so this is hepening,
    Now I want to initilize such properties in Page load or what I need to do, Please advise me.
    Regards,
    Haq

    Edward,
    Thank you for the suggestion! It directly lead to my solution wherein I used CASE statements for the column in my Region SELECT such as the following:
    WHEN (:P2_GRADING_METHOD = 'CR/NC' OR scs.scs_pass_audit = 'P') AND GET_GRADE_B93 (sac.stc_final_grade, sac.stc_verified_grade) IS NULL THEN htmldb_item.select_list_from_lov (5, 'Enter Grade', 'GRADE_LOV_CRNC','onBlur="return validate_grade(this,''FW_DATE_'||ROWNUM||''')"','NO',NULL,NULL,'GRADE_'||ROWNUM)
    When the column is NULL, the Select List (LOV) contains the entry 'Enter Grade' and that is the value displayed on page load. I bypass the value 'Enter Grade' during Submit Processing where database updating occurs.
    I did not find the need to enter values for p_null_value and p_null_text since I don't believe that it would cause the 'Enter Grade' value to display on page load for null value columns but rather would enable the user to select 'Enter Grade' from the list and have a specified return value stored in htmldb_item array.
    Again, thank you for the help!

  • How to set static item in PL/SQL

    I know this may sound like a stupid quesiton but here's the issue.
    I need a PL/SQL function that will set a application item, or page item etc. The items that need to be set are static items. Ex: P1_FIRST_NAME
    I know if I use a PL/SQL function withing HTMLDB I can use the :P1_FIRST_NAME := 'Martin';... Problem is that you can not use that syntax if you store the function in Oracle itself.
    So I need to know the syntax to set items.
    Thanks.
    M.

    HTMLDB will also recognize variables using the format &VARIABLE_NAME. (with the period at the end). Have you tried this variable naming convention? Oracle may store it as it looks like a runtime variable.
    I don't know if it will work for your scenario or not...
    Adam Cumming
    Marion County

  • How to set first column as date (dd/mm/yyyy) in the specific format in excel

    hi need help wat i did need help is tht i need wen ever i send view a excel data  the first column set to date  but some times wen i view in different type of pc the date format change to mm/dd/yyyy. is  thr any way i can set the format?

    If you just need to reformat a correct date to show up as dd/mm/yyyy, just use the "Format Cells" command and set a custom format string to exactly that. If, on the other hand, you are finding that Excel just doesn't get that the first value is a DAY, not a month, such as trying to graph a temperature data logger that records data in dd/mm/yyyy:
    Reformat the strings as dd/mm/yyyy, using the first method. This will make them LOOK correct, even though the actual date VALUES are still day-month inverted. Now save the table as a .CSV file. This will save the dates as plain text in the correct order, which you can then re-import and have Excel now read the correct date value.
    Ryan R.
    R&D

  • How to set first day of the week?

    I'm trying to set up my iPad calendar so that my week view starts on Monday. My calendar on my desktop & MoblieMe starts the week on Monday which is what I want but my iPad starts on Sunday (even though it has been synced with my desktop & MoblieMe too). Please help! Thanks!

    Actually, I tried both UK and Australia, and Sunday was still the first day of the week.
    HOWEVER!!!
    Woohoo!!   American Samoa works, and doesn't seem to change any other formats (although admittedly I have not made an exhaustive search - just checked the International Example thing recommended by Matthias suggested.
    Matthias, thanks very much by the way!! 
    OZones

Maybe you are looking for

  • No sound in iPad app Ninenewsbreak on my ipad2

    Hi guys and gals I am a newbie to this site and have just purchased an iPad 2. I have the Australin app called Ninenewsbreak and the app works well on my iphone4 BUT the sound won't work on my iPad. I have uninstalled and reinstalled it 3 times and s

  • PDFs missing bleed when placed

    I'm having an occasional weird problem in InDesign: I place an advertisement which has bleeds and cropmarks. These bleeds and cropmarks disappear in InDesign even though the frame is plenty large enough to show all of it. This happens occasionally bo

  • Why is a Smart Playlist created on my iMac missing from my Macbook?

    It was created requiring a keyword in Comments, a five-star rating and excluding one genre. But the Smart List is not listed on the Macbook, which lists all other Smart Lists I created over time. Doesn't appear where I could include it on my iPhone 5

  • Backing up ITunes on .Mac/iDisk

    I subscribe to .Mac, solely for the convenience of backing up files on iDisk. However, iDisk will not back up the iTunes library except on a song-by-song basis. I have found no way to back up the entire library, nor to back up just one artist, nor to

  • Overpaid subscription

    This is the most difficult site to use in the world The support skype link does not work and has not worked for months The refund link does not work either It is a mission to get anywhere. I inadvertently kept adding subscriptions in April in fact ad