How to select items with selectedItem and selectedIndex?

Hello.
I'm trying to selected and item in both a dropdownlist and combobox using selectedItem or selectedIndex properties. They don't work
Browing internet I found a lot of people with the same problem, that was already know in 2008.
The easy commands ddcompontent.selectedIndex = value or ddcomponent.selectedItem = item don't work.
Can anyone help me?
I couldn't find any solution.
thank you
Pbesi

Without seeing your code it's hard to tell where you are going wrong.
I have comboboxes which I need to set to the last value selected.
I wrote a function like this, and it works fine for my needs.  Given you know the value you want to select.  if you know the index of the item already then you should just be able to set that.
private function setCmb(cbx:ComboBox, val:String):void
var arrC:ArrayCollection = cbx.dataProvider as ArrayCollection; 
for (var i: int = 0; i < arrC.length; i++) { 
var pe:String = arrC.getItemAt(i) as String; 
if ( val == pe) {cbx.selectedIndex = i;
break;}

Similar Messages

  • How to select textFrames with tracking different to 0 (zero)?

    How to select textFrames with tracking different to zero (greater or smaller than zero)?
    Thanks.

    Hi All,
    Thanks for your help. The orignal clips are from Sony PMW F3 camera and I have got Dimensions: 1920 × 1080, Codecs: MPEG-2 Video, Linear PCM, Timecode, Color profile: HD (1-1-1), Total bit rate: 36,623.
    The other camera has given me .MTS files which I have converted in MPEG-2 also. I used Wondershare Video Converter to convert second cameras clip.
    I don't think the clips are matching with first camera's clips because still that is saying the same thing.
    Regards,
    Jai

  • Can only select items with direct selection tool

    I have been working on a design: one layer, with multiple groupings, nothing is locked. I'm trying to select the items with the selection tool, but can only select items with the direct selection tool (which is very inconvenient in this case). I can select the text with the text tool, but that really serves no purpose in my case. Anyone have any ideas as to what's going on? When I was working on it yesterday, everything was fine with all the tools. Thanks in advance.

    Imcookin,
    It may be a corruption of preferences, or an issue outside Illy.
    You may try to close down and just restart, or close down and restart pressing Ctrl+Alt+Shift/Cme+Option+Shift, or close down and use the suggestions in Move the folder or, if none of those suggestions help, have a look at the list in Other options

  • Vendor Line item with Opening and Closing Balances report regarding

    Dear All,
    I need a report for vendor line items with Opening and Closing balances.
    Thanks in advance
    Sateesh

    Hi
    Try S_ALR_87012082 - Vendor Balances in Local Currency
    Regards
    Sanil Bhandari

  • How populate itemrenderer items with data.

    How populate itemrenderer items with data. Ie after my app starts I generate an array collection that I want to assign as the data provider to each combobox in my item renderer, which im using in a datagrid.

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955"
                   minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:ArrayCollection id="booksWithStores">
                <fx:Object name="book1" stores="{new ArrayCollection(['store1','store2'])}"/>
                <fx:Object name="book2" stores="{new ArrayCollection(['store1','store3'])}"/>
                <fx:Object name="book3" stores="{new ArrayCollection(['store2','store3', 'store4'])}"/>
                <fx:Object name="book4" stores="{new ArrayCollection(['store1','store4'])}"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="booksWithoutStores">
                <fx:Object name="bookA"/>
                <fx:Object name="bookB"/>
                <fx:Object name="bookC"/>
                <fx:Object name="bookD"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="allStores">
                <fx:String>store1B</fx:String>
                <fx:String>store2B</fx:String>
                <fx:String>store3B</fx:String>
                <fx:String>store4B</fx:String>
            </s:ArrayCollection>
            <fx:Component id="renderer1" className="Renderer1">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{data.stores}" />   
                </s:MXDataGridItemRenderer>
            </fx:Component>
            <fx:Component id="renderer2" className="Renderer2">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{storesList}" />
                    <fx:Script>
                        <![CDATA[
                            import mx.collections.ArrayCollection;
                            [Bindable]
                            public var storesList:ArrayCollection;
                        ]]>
                    </fx:Script>
                </s:MXDataGridItemRenderer>
            </fx:Component>
        </fx:Declarations>
        <mx:Form>
            <mx:FormItem label="Dynamic Stores">
                <mx:DataGrid dataProvider="{booksWithStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{renderer1}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
            <mx:FormItem label="Static Stores">
                <mx:DataGrid dataProvider="{booksWithoutStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{createRendererWithProperties(Renderer2, {storesList:allStores})}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
        </mx:Form>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                public static function createRendererWithProperties(renderer:Class, properties:Object):IFactory
                    var factory:ClassFactory=new ClassFactory(renderer);
                    factory.properties=properties;
                    return factory;
            ]]>
        </fx:Script>
    </s:Application>

  • I reset my phone and it now receives calls that were meant for my husband. I know how to fix this with messaging and facetime, but can't seem to find how to make it stop with the calls. Please help.

    I reset my phone and it now receives calls that were meant for my husband. I know how to fix this with messaging and facetime, but can't seem to find how to make it stop with the calls. Please help.

    It may be due to Continuity
    The following quote is from  Connect your iPhone, iPad, and iPod touch using Continuity
    Turn off iPhone cellular calls
    To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls.

  • When you change PC how to make connection with iphone and new PC

    when you change PC how to make connection with iphone and new PC

    Yes, you can do it the same as any other database. The code would be similar.
    I'd also suggest you not to use the JDBC ODBC bridge for connection. There are other drivers available for that.
    Regards
    xH4x0r

  • Select list with redirect and save the item to insert row

    On the Form, I want to select from the item (P105_ADMIN_DOMAIN_ID)
    and pop the result on the item (P105_ADMIN_NAME).
    P105_ADMIN_DOMAIN_ID define:
    Display as "select list with redirect"
    Alternate source used "Only when .."
    Source Type "Database Column"
    Source Value or express "ADMIN_DOMAIN_ID"
    P105_ADMIN_NAME define:
    Display as "Text Field"
    Altrenate source used "Only when .."
    Source Type "SQL Query"
    Source Value or express "select party
    from responsible_party
    where logonid
    = :P105_ADMIN_DOMAIN_ID"
    questions:
    1. item P105_ADMIN_DOMAIN_ID DROP DOWN LIST is limited to
    some threadhold, it did not list all the value from
    the LOV which is follow:
    select LOGONID d, LOGONID r
    from RESPONSIBLE_PARTY
    order by 1
    2. I want to insert a row after complete the form.
    But my item P105_ADMIN_NAME is defined
    Source Type "SQL Query" instead of the 'Database
    Column'
    How could I overcome these?
    Thanks so much for your help.

    1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
    2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
    3) stick with "Always..." for now if you're using our auto-dml process(es)
    regards,
    raj

  • Item(select list) with LOV and Report with link = changed value item

    Hello,
    On one page I have:
    - Item 'P_name' (select list) with LOV to select name of a person;
    - Items 'factory' and Report 'factory'(standard created with 'Form with Report' on the same page).
    Situation:
    All works fine. I selected first a LOV Item 'P_name' (say 'Jane'). But....
    Only when I select a record (to change the values) from the report 'factory' then LOV Item 'P_name' become empty. Report used a link to the same page to fill the report items 'factory' and make also the LOV item empty.
    Question:
    I have made a process that write the name 'Jane' to table.
    I see two possibilities:
    - LOV Item value => fill the LOV item with 'Jane' from the table before region. Is this possible?
    - Report => What is the buttonname of reportlink? I can use this name in the processes.
    Thanks Walter!

    1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
    2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
    3) stick with "Always..." for now if you're using our auto-dml process(es)
    regards,
    raj

  • Remember selected item with ComboBox

    Hey All,
    I was just wondering how other pople solve this issue.
    I have a combobox with a XX number of items in there. Now
    when I re-populate the combobox the selected item get's lost. I
    also would like to remember the selected item during sessions. For
    instance when A user selected item XX on monday. I would like to
    have it automatically set XX again when a user comes back on
    tuesday.
    Is there a meganism in adobe flex that allows me to remember
    a 'state' of a object, or is that custom programming?
    Ideally I would like to have a component that can do teh work
    for me rather then my application handles the logic, some sort of a
    state manager?
    Ries

    Use a SharedObject, and write to it in the ComboBox change
    handler. See SharedObject in FB3 help sys.

  • Printout of Changed PO Line items with Quantity and value

    Hi SAP Gurus,
    I want to have the printout of  only those PO Line items with the change in Quantity and Value....
    How can i achieve this...
    Any config./ Developement...
    Plz. suggest....
    Rgds,
    Navin

    Hi,
    In config Purchasing->Messages->Output Control->Message Determination Schemas->Define Message Schema for PO, under 'Assign Schema to Purchase Order', if the 3rd indicator from the right 'New message determination process for change messages' is NOT selected, only changes are printed in the changed PO's.
    Are you using standard print program and SAPScript?
    Also under config Messages->Message Type->Define Message Type for PO->Fine-Tuned Control: Purchase Order, make sure you have operation '2' for PO output type.
    Phyllis.
    Edited by: Phyllis Waugh on Oct 10, 2008 6:40 AM

  • How to manage items withing categories?

    I want to be able to list and sort (in admin panel) all items in a web app or other area tagged with a specific category.  However, the Category listing option is alphabetical, and what if I have more than one category that starts with A?  for example:  "Apples" "Apricots".  If you have hundreds of items with different categories, it seems that you would need a way to sort them....
    And once I can get a list of category "Apples" items, how to filter based on the data in the fields?  Say customer entered "NO" to wanting a fruit item.  I would like to be able to sort of filter all "Apple" category items, that fruit field has "NO" value.
    And after I get that sorted view, how would I manage categories on these multiple items at once?  Say add another category "Veggies" and remove "Apples" from several items at once.  (can't do this manually if you have hundreds of items!
    Please help!!!

    Suppose i ve Form having Deptno Field and Ename field and both are List Item.... and I want in ename field list select those employee who are in selected Deptno on above list.
    WHEN-New-Form Instance.
    DECLARE
    CURSOR C1 IS
    SELECT Deptno FROM Dept;
    BEGIN
    FOR A IN C1 LOOP
    ADD_LIST_ELEMENT('block.deptno',1,A.deptno,A.deptno);
    END LOOP;
    END;
    DECLARE
    CURSOR C2 IS
    SELECT ename FROM emp where deptno=:block.deptno;
    BEGIN
    FOR B IN C2 LOOP
    ADD_LIST_ELEMENT('block.ename',1,B.ename,B.ename);
    END LOOP;
    END;
    Successfully Run
    Regards
    Danish Hayder

  • Adobe Creative Cloud - How To Share Files With Clients and Colleagues | Creative Suite Podcast: Designers | Adobe TV

    In this episode of the Adobe Creative Suite Podcast, Terry White shows how to share Photoshop, Illustrator and InDesign Files with clients and colleagues and all they'll need is a browser to comment and see your Photoshop Layers.
    http://adobe.ly/10ZjpE4

    Terry,
    I guess I miss something. How can I share a folder of photos? When I return from a shoot, I select 20 of the pictures and need to share them with my client to pick up the favorites. Am I supposed to copy and past an URL for each image separately?
    Sometimes I also work with a colleague, I need to share my favorites with him. Same issue.
    We have tried Adobe Cloud, and then went for Dropbox. There we can share a folder and he can put even his pictures in it as well. That's what I call collaboration. And it is free (unlike Adobe Cloud). If you have some word in Adobe, please tell them to either drop it and make a deal with services like Dropbox, or make it properly.
    Thanks.
    Vaclav

  • Notification or Alert when selecting Item with charge on Sales Order???

    Hello,
    Is it possible to make an notification / alert on a salesorder when entering a item with batch/charge???
    Now everytime the customer must enter CTRL-TAB on amount field to select a batch but don't get a reminder for the batch.
    They don't want to select the batch/charge on Delivery.
    THX
    Mark

    Below is code that will prevent deletion of a line from Sales Order.
    DECLARE @NoOfRows int
    DECLARE @MaxLineNum int
    DECLARE @UserId int
    IF (@transaction_type = 'A' or @transaction_type = 'U') AND @object_type = '17'
    BEGIN
    select @NoOfRows = COUNT(*) from RDR1 where DocEntry = @list_of_cols_val_tab_del
    select @MaxLineNum = MAX(LineNum) from RDR1 where DocEntry = @list_of_cols_val_tab_del
    select @UserId = UserSign2 from ORDR where DocEntry = @list_of_cols_val_tab_del
    IF(@NoOfRows <> (@MaxLineNum + 1) AND @UserId IN (10,11))
    BEGIN
    select @error = 1234
    select @error_message = 'One or more lines have been deleted from the Sales Order'
    END
    END
    You can say which users cannot modify Sales Orders like by modifying the @UserId IN (10,11) below. You need to get the User ID from the OUSR table.
    IF(@NoOfRows <> (@MaxLineNum + 1) AND @UserId IN (10,11))
    Hope this helps
    Krishnan

  • How to select item in combobox using database?

    I inserted some data in oracle database using comboboxes and to retrieve that data from oracle database.my problem, How to select the item in combobox using that data(retrieve data)?

    Not quite sure what you're asking; do you want to show some value in the combo box selected when the page loads? Then you need to use the "selected" key word in the correspoding <option> element.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

Maybe you are looking for

  • My 4th gen iPod Touch won't charge

    Hi, folks: Suddenly, my 4th generation iPod Touch won't charge. I don't mean it won't hold a charge; I mean it WON'T charge. There's no (peep!) when I attach it to a Mac, a Windows box, or to the wall. I've tried not only at my place but at my doctor

  • ADF Faces Components : File not found

    Hi, The link : http://download.oracle.com/otn/java/jdeveloper/905/adf-faces-ea10.zip in the page : http://www.oracle.com/technology/software/products/jdev/htdocs/adfjsf.html does not work... Regards, Stephane

  • Can I use the FREETalk phone adapter without a lan...

    I have disconnected my landline service.  Can I receive skype call to my regular cordless phone handset with a FREETalk phone adapter and a Skype online number? Thanks in advance any help. 

  • Object Deserialization help?

    Hi all, Once again I am forced to offer up my programming efforts for professional advice. :) I'm doing object serialization / deserialization. I have a very simple class called Person which looks like this: - public class Person implements Serializa

  • Can't renew my iTunes Match

    Hi have an iTunes Match that ended subscription yesterday, and i wanted to renew today but iTunes says that "iTunes Match is temporarily not accepting new subscribers. Check back later." and i don't want to lose my library. What's the problem?