ComboBox drop-down list is not updated

Hi all!

I have a problem of the comboBox. Please test this simple code:

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="vertical" "
creationComplete = "init ()" >

< mx:Script >
<! [CDATA]
Import mx.collections.ArrayCollection;

[Bindable]
private var dp:ArrayCollection;

private function init (): void
{
DP = new collection ArrayCollection (["one", "two"]);
}

[]] >
< / mx:Script >

< mx:ComboBox id = "cb" dataProvider = "{dp}" / >
< mx:Button label = "click me" click = "dp = new collection ArrayCollection (['three', 'four']); dp.refresh ()" / >
< / mx:Application >

What is happening is that the drop-down list of the combobox control does not display the new values. I guess that I forgot something here.

Any advice?

Thank you!

Dany

Hey did you see this post:

http://forums.Adobe.com/thread/670510?TSTART=0

Tags: Flex

Similar Questions

  • ComboBox drop-down lists appear not at all.

    From the drop-down lists 16 FF ComboBoxes stopped to appear. I click on the element < select > on the page, but it does not display the list of < option > elements. I so use the keyboard to select an option. This always happens on all, totally ALL the internet sites.
    I tried different versions of FF: 16,17,18,19, or 22 (all night), but no difference. Other browsers show ComboBox dropdown lists correctly.
    I tried the solution on your forums, but the suggestions I've found (like disabling hardware acceleration or reload cache) did not help.
    Tell me please, how it can be fixed. Thank you.

    OK, I know where is the problem now. I have an Actual Windows Manager program changes windows rendering, so comboboxes firefox window do not work.

    The heart of the problem is the ability to place windows to some monitor at startup, it crasges comboboxes.

    So sad. Thank you all.

  • Select the point in combobox/drop-down list, fields to update

    Hello

    I have a drop-down list. When a user makes a selection, I would like to query a database and return the results to be displayed in a form. Note, I don't want users to have to press a button, it should happen when an element is pressed. It sounds simple enough, but because I'm new, I'm fighting.

    I understand that I need to create a 'change' and then Manager in this handler, I need to run my t service get the data, but then when I try to access these data, nothing happens. I have to Bind something to the combobox? Here is my code.

    "" < s:ComboBox id = "lcidComboBox"change = "lcidComboBox_changeHandler (event)" labelField = "name" selectedItem ="bills.locn{}'> "

    " < s:AsyncListView list =" getLocationsResult.lastResult{}"/ > "

    < / s:ComboBox >

    protected function lcidComboBox_changeHandler(event:IndexChangeEvent):void

    {

    getLocationsResult.token = locationService.getLocations ();

    trace (locations.snam); <-this is not anything!

    }

    See you soon,.

    Brian

    OK, think about it. I needed to include a tag Binding then call my answering machine, the object is able to be called and I can view its properties.

    protected function lcidComboBox_changeHandler(event:IndexChangeEvent):void

    {

    getLocationsResult.token = locationService.getLocations ();

    snamTextInput.text = locations.snam;

    cuidTextInput.text = locations.cuid;

    }

  • Quick drop-down list does not update during the search

    My Quick Drop started acting today.  Normally, when I start typing, the list under the search box updates to show all possible matches.  This is not is no longer the case.  He always tries to autocomplete the search field, but the list is not updated.  [attached screenshot]

    I'm under LabVIEW 2009 SP1 on Windows XP 32-bit.

    For what it's worth, LabVIEW crashed went on vacation early evening Wednesday last, just before I was preparing to leave for the weekend.  When I went back to work this morning, Quick Drop work properly.  I don't know if these two events are linked, but I thought it was a possibility.

    I tried to restart my PC and rename the file LabVIEW.ini and LabVIEW restarting with a new configuration, but not luck.

    Any help would be greatly appreciated!

    It seems that I solved the problem.

    Yesterday, I noticed that the Quick Drop worked when I took my laptop to my cubicle to a job in another location.  When I started my laptop in my closet this morning, however, the problems are back.  Apparently, the problem was related to the use of the docking station for my laptop.  Something in the configuration to the hardware profile 'anchored' have been corrupted, causing the problem Quick Drop, among other buggy problems (for example, do not allow me to click and drag the mouse to highlight text).  I unplugged the laptop from the docking station, and suddenly everything worked very well.  Once I reconnected it the laptop to the docking station, it was apparently crushing the hardware profile "anchored" corrupt, because the next time I start the computer when you are connected to the docking station, everything has worked.

    Problem solved!

  • Drop-down list does not appear selected value

    Hello

    I have a problem. The output of a query results page. There are 2 fields must be updated: scholarshipID and amount. I want to update my request at a time. My dynamic drop-down list does not appear selected value. The value is there, but it does not recognize in the drop-down list. I could not find the error. My code is below, so please help...

    < name cfquery = "getStudentsData" datasource = "#application. DSN #">"
    Select StudentID, fname, lname, GPA, Tbl_Students.ID, ScholarshipID, rise, Tbl_StudentsScholar.ID as the SSID, AwardStatus
    of Tbl_Students, Tbl_ApplyYear, Tbl_EduBckgrnd, Tbl_StudentsScholar
    where Tbl_Students.ApplyYr = Tbl_ApplyYear.id
    and Tbl_Students.id = Tbl_EduBckgrnd.SID
    and Tbl_Students.ID = Tbl_StudentsScholar.SID
    and ApplyYear = 1
    and steps = 7
    order by studentid
    < / cfquery >

    < name cfquery = "getScholarship" datasource = "#application. DSN #">"
    Select AcctNum, scholarship, Tbl_Scholarships.id, Code
    of Tbl_Scholarships, Tbl_DistCode
    where Tbl_Scholarships.DistCode = Tbl_DistCode.id
    AcctNum order
    < / cfquery >

    < cfparam name = 'X' default '0' = >
    < cfparam name = default "CounterX" = "0" >

    <!--get scholarship-->

    < cfif getStudentsDataRet.RecordCount eq 0 >
    < class p 'paragraph' = > No Records Found < /p >
    < class p = "pageheight" > < / p >
    < class p = "pageheight" > < / p >
    < cfelse >


    < class p = "submitmessage" > records found - < cfoutput > #getStudentsDataRet.Recordcount # < / cfoutput > < / p >
    < table width = "98%" border = "1" cellpadding = "3" cellspacing = "0" style = "" border-collapse: collapse "bordercolor ="#000000"align ="center">"
    < class tr = "steptext2" bgcolor = "#999999" align = "center" >
    < td width = "10%" > Student ID < table >
    < td width = "9%" > name < table >
    < td width = "9%" > name < table >
    < td width = "5%" > GPA Cum < table >
    < td width = "5%" > account # < table >
    < td width = "5%" > < table > amount
    < td width = "20%" > account # | Dist Code | Scholarship name < table >
    < /tr >

    < do action = "updateAward.cfm" method = "post" name = "AwardForm" > "
    < cfoutput query = "getStudentsDataRet" >
    < cfif eq x 0 and x neq getStudentsDataRet.recordcount >
    < cfset x = 1 >
    < cfelseif x neq (getStudentsDataRet.recordcount + 1) >
    < cfset x = x + 1 >
    < / cfif >
    < class = "paragraph" tr >
    < td > #StudentID # < table >
    < td > #lname # < table >
    < td > #fname # < table >
    < td > #GPA # < table >


    < cfif AwardStatus eq 2 >
    < name cfquery = "getStudentsScholar" datasource = "#application. DSN #">"
    Select Code, Tbl_Scholarships.id, AcctNum, scholarships
    of Tbl_Scholarships, Tbl_DistCode
    where Tbl_Scholarships.DistCode = Tbl_DistCode.id
    and Tbl_Scholarships.ID = #getStudentsDataRet.ScholarshipID #.
    < / cfquery >
    < / cfif >
    < td >
    < select name = "" scholarshipID_ #X # "onChange =" showMessage_ #X #(this.options[this.selectedIndex].value) ">"
    < option value = "" > < / option >
    < cfloop query = "getScholarshipRet" >
    < option value = "" #id # "selected < cfif getStudentsDataRet.ScholarshipID eq id > < / cfif > > #AcctNum # < / option >"
    < / cfloop >
    < / select >
    < table >
    < td > < input name = "" amount_ #X # "type ="text"size ="5"< cfif amount gt 0 > value = ' #NumberFormat (amount, 99.99) # ' < / cfif > / > < table >"
    < td > < cfif AwardStatus eq 2 > #getStudentsScholar.AcctNum # | #getStudentsScholar.Code # | #getStudentsScholar.Scholarship # | #getStudentsDataRet.ScholarshipID # < / cfif > < table >
    "< input name =" "IndexID_ #x #" type = "hidden" value = "#SSID #" / >
    < /tr >
    < / cfoutput >
    < cfoutput > < input name = "CounterX" type = "hidden" value = "" #getStudentsDataRet.RecordCount # "/ > < / cfoutput >"
    < b >
    < td align = "center" colspan = "11" height = "50" valign = "middle" > < input name = "Submit" type = "submit" value = "Submit" / > < table >
    < /tr >
    < / make >
    < /table >
    < / cfif >

    the syntax is: getStudentsDataRet.ScholarshipID [1]

    where '1' is the line number to specify

  • Installed Firefox 17.0.1. Drop-down lists does not open now (like the drop-down list Twitter connection).

    Installed Firefox 17.0.1.

    Drop-down lists will not open now - for example, Twitter login drop-down list (so cannot connect to Twitter). Drop-down lists has worked for all the previous versions of Firefox.

    Its happens very rarely...

    No need to do it each time...

  • I downoladed and tried to install CS6 on my computer after that machine has been upgraded to Windows 10.  I get a message that says "serial number is not for the product." The drop-down list does not contain CS6 Design and Web Premium.  What should I do

    I downloaded and tried to install CS6 on my computer after that machine has been upgraded to Windows 10.  I get a message that says "serial number is not for the product." The drop-down list does not contain CS6 Design and Web Premium.  What should I do to get loaded and enabled on my computer?

    That fall down, and the serial number you provide must identify the previous version that you upgraded because CS6 is an upgraded version in your case.

    Error "this serial number is not for a product calling it" | CS6, CS5.5, CS5

    http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-qualifying-product.html

  • Mail signature drop-down list is not displayed

    Hi all, I have a problem using Mail v9.3 with OS X El Capitan v10.11.5 because it is not display the drop-down list of signatures in the new email or reply/forward an email windows.

    I checked all the Mail preferences, and I see all the associated parameters.

    Can someone help me?. Thanks in advance.

    Please take these steps to remove the mail folders 'sandbox '.

    Step 1

    Back up all data.

    Triple-click anywhere in the line below on this page to select this option:

    ~/Library/Containers/com.apple.mail

    Right-click or Ctrl-click on the highlighted line and select

    Services ▹ Reveal

    the contextual menu.* A Finder window should open up with a folder named "com.apple.mail" selected. If this is the case, move the selected folder - not only its content - on the desktop. Open the window Finder for now.

    Log off or restart the computer. Launch Mail and test. If the problem is resolved, you may have to re-create some of your e-mail settings. Any writing paper custom that you created may be lost. Ask for instructions if you want to keep these data. You can then delete the folder that you moved and close Finder.

    CAUTION: If you change the content of the sandbox, but leave the folder itself in place, Mail may hang or starts any. Remove the tray to sand everything will be rebuilt automatically.

    Step 2

    If step 1 does not resolve the problem, repeat with this line:

    ~/Library/Containers/com.apple.MailServiceAgent

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

  • Why don't point in the drop-down list address not remove when selected and click on remove

    on version 14.1 - to remove an item in the drop-down address, said the point the address line the right click and select delete - this clears the address line but point remains in the drop-down list and does disappear not - why point unclear when you return to fall down to check this

    the system is XP and ff 14.1

    I think that you need for the arrow down to the element, so it is highlighted, and then press DELETE.

    (I meant the keyboard delete key, you can't right click on the drop-down list).

  • drop-down lists do not work

    When I'm FaceBook, drop-down desires do not work in Firefox, but work in Chrome. For example, when I click on the arrow next to the House, I should get a drop-down lists which includes the possibility of closing the session. But nothing happens. Also, when I click on the arrow next to a post, I should get the options for this post, but nothing happens.

    There are two or three modules that stop a click in the upper part of the contained part of the working window.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

  • Custom image drop-down list appears not appropriate on Blackberry 9000 Simulator

    Hello

    I created the custom in my code drop-down list. my code works fine for other simulators.

    But when I tried to run on Blackberry 9000 Simulator from the drop-down list not shown correct image he cuts half the size of the image.

    I check my code, I did not manually height for the drop-down list.

    Please tell me why image appears not appropriate Simulator 9000.

    Welcome to the forums.

    I'm guessing that you don't know how to use the insert of Code button.  If you look at the top of the editing window, you will see a number of options for formatting such as police.  Look to the right and there are two buttons, one is used to insert the code.  Hover over the buttons and you will see a description.  Press the button insert the Code, add your code and you will see something like the following:

        public void drawListRow(ListField list, Graphics g, int index, int y, int w) {
            Bitmap bitmap = Bitmap.getBitmapResource(arrowBitmapName);
            int fontWidth = getFont().getAdvance(text);
            int width = Display.getWidth() ;
            int height = list.getRowHeight();
            g.setColor(Color.BLACK); g.setFont(fontPlain);
            g.drawBitmap(0,0, bitmap.getWidth(), bitmap.getHeight(), bitmap, 0, 0);
            g.drawText(text, 3, y-drptextHeight, 0, w);
        }
    

    I think it's the routine that you use to draw each line of your drop...

    I recommend that move you as much code as you can out of this method.  It's called very often.  Creating a Butmap here, which is an expensive operation, is not a good idea, especially when the Bitmap image in reality does not change.  So create once and use it in the drawListRow.

    Also use the parameters that are passed.  The width you have to paint is given in the parameter, and perhaps not the same as the actual display width.

    In any case, this code draws the Bitmap to (0, 0).  I susspect should be at (0, y).  This could explain why it is not drawn correctly.  You seem to have a similar problem with the text.

    The drawListRow is assigned a value of 'y' and should paint from y to y + listField.getRowHeight ().  But in fact drawListRow has access to the area of the entire painting, so can do too much else.  You must code your method correctly to get good results in your list.

    Hope this helps, if not, please post your code so we can actually read.  In fact, as I say to others, do not post your real code.  Create a simple example that we can run illustrating your problem.  Then everything can run your example and see the problem.  Never stick all your code.  People are put off by the number of lines of code.

  • Data from the field drop-down list does not clear when the reset button is activated

    Acrobat Pro XI

    All field boxes are checked in the tab properties of the button actions... but when I click on the reset button of the form I created only the data in clear text fields, not any of the data that has been selected in a drop-down list.  What I am doing wrong?

    The 'rest shape' command returns the fields to their default values. If this

    value is not empty, that's what he'll be back.

  • Country of destination - drop-down list does not not on some computers

    Hello

    I just had our second client state on the shopping cart page they can't scroll down to select the destination state:

    "I had to put American Samoa because the drop down menu would not let me scroll U.S. on my lap top."

    I don't see how to change the list via the modules - shopping cart page.

    Does anyone know how to make U.S. top the Australia?

    Thank you

    Hi DandyDahlia,

    It is possible to manually set the order in which countries appear by listing them using the settings for the following tag: {tag_shippingoptions, true, US; GB; AU,}.

    In this example, the order in which countries will appear in the menu drop-down are the following:

    United States

    United Kingdom

    Australia

    Notes; Only these 3 countries will appear in the drop-down - menu you need to list all countries manually in this tag that you want to appear in the menu dropdown.

    More information can be found in the following article: ng.html #id_727 http://helpx.adobe.com/business-catalyst/partner/displaying-shipping-options-inside-shoppi.

    Thank you
    Matt.

  • How do you define a ToolTip to the ComboBox drop-down list?

    I have a box and drop-down list when the user opens I need display the ToolTip text on the drop-down list when the user hovers over them. Here is the code that I have that works:

    MyComboBox.addEventListener ("open", cmbOpen);

    private void cmbOpen (e:DropdownEvent): void {}
    MyComboBox.dropdown.showDataTips = true;
    MyComboBox.dropdown.dataTipFunction = comboDataTip;
    }

    public void comboDataTip (point: Object): String {}
    var temp_str:String = "";

    If (item.varValue! = null)
    temp_str = item.data
    Return temp_str;
    }

    The only way I could do this job is to assign it to the open event. Is there another way?

    Also... How to move the ToolTip text. It appears in the wrong place and I want to shift it to the right a little more... I tried this code, but the function is not called.

    MyComboBox.addEventListener ("toolTipShow", toolTipShow);
    and ive used
    MyComboBox.dropdown.addEventListener ("toolTipShow", toolTipShow);

    private void toolTipShow (e:ToolTipEvent): void {}
    trace ("e:" + e.target);
    trace ("e:" + e.toolTip);
    }

    I need tooltipshow function is called so I can adjust the ToolTips x and y coord...

    Any ideas?

    You can try to use a rendering engine inline with a Label component that manages the Tip:







  • Site drop-down list does not work - DW CC 2015.1

    Someone knows how to fix DW so that the drop-down list of sites appears in the files Panel? When I click on the drop down menu, I see he's trying to do * something * but I don't have the drop-down list. I can work around it by going to the Site > Manage Sites, but I prefer to use the drop-down list.  Any help is appreciated.

    Thank you

    Tim

    I filed a bug to the engineering team to watch, referring to this thread and the other (site drop-down list on the files tab too short?).

Maybe you are looking for