Combobox dropdown doesn't refresh

Hi all!
I have a comboBox problem. Please test this simple code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="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 ArrayCollection(["one", "two"]);
        ]]>
    </mx:Script>
    <mx:ComboBox id="cb" dataProvider="{dp}"/>
    <mx:Button label="click me" click="dp = new ArrayCollection(['three', 'four']);dp.refresh()"/>
</mx:Application>
What happens is that the dropdown list of the combobox doesn't show the new values. I guess I'm overlooking something here.
Any advice?
Thanks!
Dany

Hi Archimedia,
I have run the sample code that you have sent....but I could see no problem I could see the combobox being refreshed when the button being clicked.
However it is always safer to remove all the elements in the ArrayCollection using the removeAll() method before assigning the new values.
Try the below code and check whether it's working for you...?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
xmlns:mx="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 ArrayCollection(["one", "two"]);}
private function refreshComboBox():void
if(dp != null){
dp.removeAll();
dp.refresh();
dp =
new ArrayCollection(['three', 'four']);}
]]>
</mx:Script>
<mx:ComboBox id="cb" dataProvider="{dp}"/>
<mx:Button label="click me" click="refreshComboBox()"/></mx:Application>
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari

Similar Messages

  • Combobox dropdown closes when refreshing dataprovider

    Hi,
    i'm having a small problem when filtering a dataprovider of a
    combobox and then refresh it.
    When the dropdown is open before the refresh() call, it'll
    close itself when refreshing the dataprovider.
    I've tried overriding the close() method but close() doesn't
    get called during this close operation.
    Also, the close event is not dispatched.
    Anyone knows if it's possible to prevent the dropdown from
    closing ?

    I don't think its possible, because the items in the list
    could completely change and it needs to close so it can remove the
    old lists and add the new items.
    You couldn't hold me to that thought its just my
    guess.

  • Cat TimesheetData dropdown doesn't refresh

    Hi Expert,
    In Cat WD application , we have a cell Absence use dynamic dropdown UI.
    when we click on the calendar, the timesheet data is refreshed, but not the dropdown list.
    Any idea ?
    thanks.
    Ben.J.

    as i said v_t554s_essex for entries
    or T554s for the customisatiom
    Now then, does the search help show the time period it is valid for?
    usually it outputs all the absences and attendances
    Now in CATS WD as you are aware uses different search help
    ie CLASS CL_XSS_CAT_RFC_COMMAND_TOOLS method BUILD_F4_HELP
    SAPLHRXSS_CAT_WEBDYNP          / LHRXSS_CAT_WEBDYNPU02
    FUNCTION                       / HRXSS_CAT_WD_F4_AWART

  • Disk Utility doesn't refresh when inserting new DVDs

    I'm in the process of copying a few DVDs by making an image of them first and then burning the image onto a blank DVD through Disk Utility.
    After I'm done with one and insert a new DVD to copy, Disk Utility doesn't refresh to show me the new disk is in the drive. Is it normal?
    If it is, is there something I can press so that Disk Utility manually refresh its listing of drives?
    I find that quitting and restarting Disk Utility just to make a new image is so inefficient.

    I am suddenly having the same problem. When I insert a blank disc either cd or dvd it does not show up in the left column in disc utility. I have tried closing and then relaunching disc utility but nothing. The disc shows up on my desk top but not in disc utility. I fear this is a Snow Leopard problem. Toast has no problem recognizing the disc and burning to it.

  • The administration console doesn't refresh

    Hello,
    I used WebCenter Portal Administration Console (http://<server>:<port>/<context_root>/admin to delete a page at runtime.
    Then I added new pages in the page hierarchy in my portal application, which I would like to see in the admin console too, but it seems they don't show up
    I mention that the admin console looks fine on my integrated environment but on the managed server it doesn't refresh.
    How the admin console should be refreshed to reflect the latest changes?
    Thanks,
    Constantin

    Yes, your understanding is correct. I added the pages in the pages folder in JDeveloper (11.1.1.4) and then added them to the page hierarchy.
    Here is the pages.xml content
    <?xml version="1.0" encoding="UTF-8" ?>
    <pagesDef xmlns="http://xmlns.oracle.com/webcenter/page"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/webcenter/page/pagesDef.xsd">
    <pageDef contentMRef="/oracle/webcenter/portalapp/pages/home.jspx"
    hidden="false" shared="false" hasSubPages="false" id="home"
    overridePolicy="true"/>
    <pageDef contentMRef="/oracle/webcenter/portalapp/pages/ipc.jspx"
    hidden="true" shared="false" hasSubPages="false" id="ipc"/>
    <pageDef contentMRef="/oracle/webcenter/portalapp/pages/google.jspx"
    hidden="true" shared="false" hasSubPages="false" id="google"
    overridePolicy="true"/>
    <pageDef contentMRef="/oracle/webcenter/portalapp/pages/services.jspx"
    hidden="true" shared="false" hasSubPages="false" id="services"/>
    </pagesDef>
    I can see all the pages in the IWLS admin but in WLS admin I can see only the "home" page.
    Previously I deleted "ipc", "google" and "services" from WLS admin and I cannot see them again after a new deployment.
    I can add new pages in WLS admin without any problem.
    For IWLS, although I deleted the same pages in admin console, after a new deployment all the pages are shown.
    I guess it is the setting "delete customization before each run" in JDeveloper which allows the refresh of the IWLS admin console too.
    The question is what is the equivalant for WLS? Do I need to "clean" the customization?
    Thanks,
    Constantin

  • Bug: The message list doesn't refresh SOLVED caused by HWA (hardware assist)

    I am using the latest Thunderbird from the beta channel, v38. I was seeing this in the stable release channel as well, so I thought I'd try the beta channel to see if it was fixed there, but it was not.
    The issue is that the message list doesn't refresh all the time when switching folders. If I an in my Inbox folder, for example, and then select my Junk folder, the message list will not update/refresh, until I drag my mouse over the message list. Then, it will refresh line-by-line as the mouse enters each line.
    I am on Windows 7 64-bit, with an i5 processor and 8 GB RAM. Nothing else on my system is running slow. This will happen when Thunderbird is the only app running. I also have a skin applied to my UI. I've tried a few different skins, and this behavior happens with all of them.
    A second issue I noticed this morning was that when I received a new email, the entire app seemed to freeze momentarily while the notification for this new email was spawned. As soon as the notification became visible, the app because responsive again. Perhaps a threading issue here.

    Hi Matt,
    Thanks for the quick reply.
    "The last issue is probably your anti virus diving in an scanning the new mail as it is added to a very large mail file. Right click the folder and select properties. What is the size on disk?"
    Folder properties on my Inbox folder says:
    Number of messages: 1038
    Size on disk: 90.9 MB
    "With regard to your first problem, I am seeing that on the daily built as well, on an intermitent basis, but not on change of folder, only on dragging the mouse over the existing list."
    Yes, it is intermittent for me as well. I just recalled that the last time I saw it was when I changed folders. It may not be limited to that situation.
    "What Video card do your have?"
    Invidia GeForce GT 740, w/4GB dedicated video memory.
    "Please go to the trouble shooting information on the help menu (alt+H) and copy and paste the graphics section to a message here."
    Graphics
    Adapter Description NVIDIA GeForce GT 740
    Vendor ID 0x10de
    Device ID 0x0fc8
    Adapter RAM 4095
    Adapter Drivers nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
    Driver Version 9.18.13.4475
    Driver Date 11-12-2014
    Direct2D Enabled true
    DirectWrite Enabled true (6.2.9200.16571)
    ClearType Parameters ClearType parameters not found
    WebGL Renderer false
    GPU Accelerated Windows 1/1 Direct3D 11
    AzureCanvasBackend direct2d 1.1
    AzureSkiaAccelerated 0
    AzureFallbackCanvasBackend cairo
    AzureContentBackend direct2d 1.1

  • ICal doesn't subscribe to timed events and doesn't refresh

    In our office we each have a calendar which each person publishes on .Mac, and which others in the office subscribe to. We're experiencing the following problems:
    -- "Refresh all" on some machines doesn't refresh calendars; each must be refreshed individually;
    -- On some machines, all-day events appear, but timed events do not
    -- In some cases calendars won't refresh properly; they display old information and don't update, even when manually refreshed. The calendar must be deleted and re-subscribed to on the subscribing machine. Sometimes even this doesn't work and has to be done repeatedly before the calendar is up to date.
    We have a mix of iBooks, iMacs (from G4 to Intel), MacBook, PowerBook, and G5; running OS X 10.3 through 10.4. Could the mix of OS versions be the problem? Or should we use another server than .Mac to publish/subscribe to?

    lilkirk87,
    It probably means that you do not have "Calendars" selected in iPhone>Settings>iCloud.

  • Eigrp routes doesn't refresh when neighbor down

    hi guys, need some tips for troubleshooting an ongoing issue, but can't do the changes anymore untill next call and yes the issue is still ongoing.
                           WAN1 <--------------------------------------------------------------------------------------------> WAN2
                               |                                                                                                                                       |  
                       metro ethernet ME-3600X-A  <----> ME-3600X-B  <----->  ME-3600X-C<----> c3560v2
    I have 3 metro ethernet switches and a c3560v2 switch connected as above. The WAN1 redistributes all routes to ME-3600X-A's eigrp and WAN2 redistributes all routes to c3560v2 's eigrp and these two propagates all their eigrp routes to ME-3600X-B and ME-3600X-C  which are in the same eigrp AS. And all link/connections are point-to-point.
    Now, when the link between ME-3600X-B  <----> ME-3600X-C is physically disconnected, the ME-3600X-C's eigrp still points the route(s) to the ME-3600X-B's p2p ip as its next-hop - which is down(neighborship between them goes down, but still the routes doesn't refresh/rebuild). However, switch c3560v2 has route to the same network learnt from WAN2.
    Wonder why, need inputs please? Thanks.

    You shouldn't reference the CrystalReportViewer in the Page_Load handler, since there's issues with serialization of the report source:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/
    en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/
    crsdk_net_doc/html/
    crconsdkfundamentalspersistencepageloadeventhandler.htm
    In fact, you should save the report source in session, and bind it to the viewer on post-back.  Sample code can be found here:
    http://resources.businessobjects.com/support/communitycs/
    FilesAndUpdates/sample_applications_for_.NET_developers.pdf
    Sincerely,
    Ted Ueda

  • Swing doesn't refresh/repaint properly

    Hi,
    I'm trying to display a very simple dialog that just about says "Please wait" while I do i/o extensive processing, and can't for the life of me succeed. I tried many things, including Threads, SwingWorker, to no avail. Something seems fishy in that I would expect a window that is setVisible(true) to be completely painted before processing resumes, but in all my cases the window comes up empty while the work gets done.
    Is there something special that I should do?
    Similarly, sending a somedialog.setVisible(false) before doing some I/O work erases the window but leaves the background erased, i.e. the underlying window doesn't refresh. How can I ensure that any GUI stuff is finished before resuming the processing?
    Thanks

    Sorry, I just noticed that only half of my code got pasted:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DialogWait extends JFrame implements ActionListener
         public DialogWait()
              JButton button = new JButton("Start Long Running Task");
              button.addActionListener( this );
              getContentPane().add( button );
         public void actionPerformed(ActionEvent e)
              JDialog dialog = new JDialog(this, "Please Wait Test", true);
              dialog.getContentPane().add( new JLabel("Please wait for 5 seconds...") );
              dialog.pack();
              dialog.setLocationRelativeTo( this );
              Thread longRunningTask = new MyThread( dialog );
              longRunningTask.start();
              dialog.setVisible( true );
              dispose();
         class MyThread extends Thread
              JDialog dialog;
              public MyThread(JDialog dialog)
                   this.dialog = dialog;
              public void run()
                   long start = System.currentTimeMillis();
                   long current = start;
                   // Tight loop to hog CPU
                   while (current - start < 5000)
                        current = System.currentTimeMillis();
                   System.out.println( "Long task finished" );
                   dialog.setVisible( false );
         public static void main(String[] args)
              JFrame frame = new DialogWait();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }Notice my code is in a tight loop which should hog the CPU more than even doing heavy I/O should. Mind you on my computer the CPU only maxes out at 50%. So maybe thats why it works for me.
    Yes I tried something very similar, Well, don't try something similiar, try something exactly the same. (ie. does my program work on your machine?) If so, then the way you coded you other examples is wrong and we can't help since you haven't posted simple demo code that doesn't work.
    http://www.physci.org/codes/sscce.jsp

  • My app store  (iPhone 6) doesn't refresh since november 1st in the screen appears i have already 11 updates but i cant see it

    My app store  (iPhone 6) doesn't refresh since november 1st in the screen appears i have already 11 updates but i cant see it

    Tee wrote:
    I had to do ALL of the above in sequence, but before rebooting, I turned WiFi OFF.
    When I rebooted, I turned WiFi ON. I made sure that Location Services was ON for the Apple Store ( the one with the shopping cart).
    Then I went into the App Store.
    I did that about 3 times then voilà! The App Store appeared again.
    To summarize:
    - Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead.
    - Try App Store. If it doesn't work, continue with below.
    - Settings>Privacy>Location Services>System Services (swipe to the bottom of the page to find this)>Location Based iAds>Off
    - Close all apps in the Task Bar.
    - Turn WiFi OFF.
    - Reboot.
    - Turn WiFi ON.
    - Make sure Location Services is ON for the Apple Store.
    - Turn Date and Time to Set Automatically ON.
    - Try App Store.
    Repeat the above if necessary. Thanks Demo, Ocean20 and Diavonex.
    It worked!
    Could we end this topic?

  • Screen refresh problem where data is entered and the screen doesn't refresh

    Many people in the company are experiencing the odd screen refresh problem where data is entered and the screen doesn't refresh to show the updated result in corresponding cell formulas.
    Microsoft have issued a hotfix to fix the issue for Excel 2003 as shown. Microsoft released a hotfix for this problem (<a href="advisory?ID=978908">KB978908</a>). Display memory tends to pick up data from hidden sheets and pastes it
    into the active screen. No impact on the file. This occurs when protecting and unprotecting worksheets in VBA. I also suspect that enabling and disabling screen refresh contributes to this problem. In any case there is a fix, albeit with the following disclaimer:
    As of yet I have not been able to find a fix for this for office 2010 and 2013, Any suggestions would be great.

    Hi,
    Based on your description, Excel does not show the text strings when you typing. It may be caused by the cell format, if we set the cell format as ";;;" in custom format, it will not display the text that you typed. 
    And the issue may be caused by the third-party input method, there are some compatibility issue between them.
    If the issue still exits, please try the following methods
    Verify/install the latest updates
    Repair your Office program
    Regards,
    George Zhao
    TechNet Community Support

  • EA3: Trigger status doesn't refresh

    Hi,
    On enabling/disabling a trigger, it's status icon doesn't refresh unless you manually refresh the whole triggers branch.
    Thanks,
    K.

    Yes, it's logged.
    Sue

  • SelectManyListbox  doesn't refresh with partialTriggers

    I can successfully populate and default selected values in a selectManyListbox when a selectOneChoice has changed it's value. This issue is when I change the selectOneChoice the second time. The selectManyListbox keeps the selected values associated with the first selectOneChoice. What is also strange is when I click on a value in the selectManyListbox and change the selectOneChoice back to the first value, the selectManyListbox doesn't refresh, only the item that I clicked is still highlighted.

    Frank,
    Thank you for taking the time to look at this. I have a workaround for this by creating a javascript function that sets selected=false in everything in my selectManyListbox, that is called onChange in my selectOnlyOne. This workaround will have to do until I have time to create you the test case.
    Ken

  • Auto shape properties window doesn´t refresh values

    hi,
    after installing creative suite 4 on my new pc i have a big problem. the auto shape properties window in fireworks doesn´t refresh the values of my shape. if i select the shape i have to close the panel and open it again to get the right values. if i select on shape and then another one, i have to do the same. this is really annoying.
    here a little demonstration: http://gate8.de/jeeeee/2013-03-13_1810.swf
    i uninstalled fireworks, deleted preferences folder, updated graphic driver and finally called the support but they "coundn´t" help because the product is too old
    i hope you can help.
    thx a lot!
    Jens

    Hopefully, you realize you can edit the Auto Shapes directly on the canvas. Hovering over a "yellow diamond" will reveal a tooltip telling what property it adjusts.
    It sounds like there's a communication problem between the panel and the canvas/application. The Auto Shape Properties panel is a SWF panel that resides in the application's Configuration/Command Panels folder. Other SWF panels include Align, Path, Symbol Properties, Image Editing, Special Characters, and Color Palette. I wonder if any of these other panels are affected?
    It seems like there's been a lot of problems with Flash-based panels conflicting with other apps or plug-ins. Try quitting and restarting the application with no other applications running in the background. Also check out something like this: http://forums.adobe.com/message/3931126

  • Emails stay unread (inbox doesn't refresh)

    Hi,
    If I open an email in outlook 2010 they stay unread.
    I have enabled following options in the reading pane:
    Mark item as read when selection changes
    Single key reading using space bar
    I've also tried to enable the "Mark items as read when viewed in the Reading Pane" and set it to 5 seconds. But that also doesn't work.
    I've also noticed that when I open an email, I go to sent items and then go back to my inbox, the emails are now marked as read? So it looks like my inbox doesn't refresh?

    Hi,
    Does this issue happen to subfolders under Inbox?
    We can try to start Outlook with /cleanviews switch to check if the problem is related to corrupt view. To do this, exit Outlook, press Windows key + R to open the Run command, type
    outlook.exe /cleanviews and press Enter.
    We can also try to open Outlook in safe mode to check if this issue is caused by problematic add-ins.
    Press Windows key + R, type outlook.exe /safe in the Run box and press Enter. If the problem would be gone in safe mode, please go to File > Options > Add-ins and disable suspicious add-in to resolve the problem.
    Please let me know the result.
    Thanks,
    Steve Fan
    TechNet Community Support

Maybe you are looking for

  • Help!! Arial Narrow missing in Adobe Reader 9.4.7

    Hello I have the latest Adobe Reader 9.4.7 and I am having trouble with the font Arial Narrow. When I open a file which has that font  I get an error saying "Cannot find or create the font 'ArialNarrow'. Some characters may not display or print corre

  • PLD Table

    Dear All, I am making first time PLD of Purchase Order Here i want to Select master information from Master Data When ever i select Table in PLD i am unable to see Purticular Table.

  • DPM 2012 Cannot modify or create protection groups after upgrading from DPM 2010

    Hi, We have recently upgraded from DPM 2010 to 2012.  Since the upgrade we have been unable to create new protection groups or add new datasources to an existing group.  Existing backups are running without errors.  We have tried checking the DPM sql

  • IChat Error -8 Please Help!!!av

    I keep getting this error whenever I try to do an audio chat with my boyfriend. We both have macs and I have been able to chat with other people, and he has been able to chat with other people, but every time we try to chat with each other we get thi

  • OPMN Configuration Assistant failure

    Having trouble getting EM Grid Control installed using a pre-existing 10g db instance. OPMNCTL always fails as follows : trinity: /u01/app/oracle/product/10.1.0em/opmn/bin>./opmnctl startall opmnctl: starting opmn and all managed processes... =======