Issue in Combobox flex 3.5

Hello all,
I got a serious issue in combobox while using flex sdk 3.5.
The issue is if we filter the collection before creation complete of component and use that filtered collection as a dataprovider for combobox.
If the result from the filtered collection is a blank collection then that combobox is still pouplated from the first value from the source of collection. However the actual result should be null in the selected item of comboBox.
Giving you the sample test code to reproduce the issue.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"
     initialize="onInitialize()"     >
     <mx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               [Bindable]
               private var dp:ArrayCollection = new ArrayCollection(['t1','t2','t3']);
               private function filterFunction(inData:Object):Boolean
                    return false;
               private function onInitialize():void
                    dp.filterFunction=filterFunction;
                    dp.refresh()
          ]]>
     </mx:Script>
     <mx:ComboBox id="cb" dataProvider="{dp}" x="66" y="31"/>
     <mx:Button  label="Refresh DP"  x="102" y="92" click="dp.refresh()"/>
</mx:Application>
However it is corrected after refreshing the dataprovider after creation complete. But I don't want to refresh it everywhere thoughout my application.
Please, provide your comments on this.
Thanks
Vikash Kumar

Hi Vikash Kumar,
Just put the initialize event on ComboBox itself instead of Application tag....as shown below...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"
          >
     <mx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               [Bindable]
               private var dp:ArrayCollection = new ArrayCollection(['t1','t2','t3']);
               private function filterFunction(inData:Object):Boolean
                    return false;
               private function onInitialize():void
                    dp.filterFunction=filterFunction;
                    dp.refresh()
          ]]>
     </mx:Script>
     <mx:ComboBox id="cb" dataProvider="{dp}" x="66" y="31" initialize="onInitialize()"/>
     <mx:Button  label="Refresh DP"  x="102" y="92" click="dp.refresh()"/>
</mx:Application>
Thanks,
Bhasker

Similar Messages

  • [svn] 3457: Accepting patch SDK-17038 by Brian Telintelo to fix an incorrect validation issue in ComboBox .

    Revision: 3457
    Author: [email protected]
    Date: 2008-10-02 13:45:35 -0700 (Thu, 02 Oct 2008)
    Log Message:
    Accepting patch SDK-17038 by Brian Telintelo to fix an incorrect validation issue in ComboBox.
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17038
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/ComboBox.as

  • Issue with combobox : value never change

    Hello,
    I have made a VI for control a motor.
    There is my subVI
    I have create a VI with a combobox to control the motor with 3 commands.
     Each command send a string who the motor understand.
    My issue is when i choose a command, in my subVI that doesnt change.
    What i have to do to make my VI working with the combobox ?
    Thanks for your help.

    1) Put a delay in your loop - you are hammering the serial port and wasting CPU.
    2) If you wire your combo box into the VI as shown, it can change only at the startup of the loop, because once it starts looping, it has to finish.
    Try running it as one VI rather than a sub-VI and you should see what I mean.
    You need a parallel process in order to control the combo box. In other words, you need a parallel loop architecture.
    Message Edited by Broken Arrow on 06-08-2010 09:56 AM
    Richard

  • Issues migrating from Flex Builder 3 to Flash Builder 4.5

    Migrating from Flex Builder 3 (SDK 3.5) to Flash Builder 4.5 (SDK 4.5). Using Flex 3 compatibility mode. Flash Player 10.2. MX only components set.
    Issue 1. A DataGridColumn error per:  Description Resource Path Location Type
    Declaration of style 'direction' conflicts with previous declaration in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\libs\mx\mx.swc(mx.controls.dataGridClasses:DataGridColumn). SPT_GUI  Unknown Flex Problem
    Issue 2. Using Cairngorm 2. Have a class 'Bindable] public class GuiModel implements ModelLocator'. Now getInstance() is not defined per: private var model : GuiModel = GuiModel .getInstance(). Does Cairngorm 3 have to be used with Flash Builder 4.5?
    What has to be done to resolve these issues?

    Issue 2: Have you defined the static variable to hold the instance of the model locator? Also, have you defined a static method to return the model locator's instance?

  • Issues with my Flex 2 project after upgrading version of Flash

    This has been happening for some time now....
    I work in a computing environment where software/security updates are sent to workstations over the network automatically.  Everytime a new version of the Flash player gets released and pushed over the network, I have interesting/wierd problems develop in my flex application.
    Today, we recieved the push of the nesest version of the flash player (10.0.22.xxxxxxxx).  Anyways, not I am getting my events throw in a different order, and the focus manager can no longer find which object to give focus to, resulting a null object reference (within a core flex class, not my own code).
    This happens with every new version of the player that is released.  If I go back and use my code on a machine which has the older version of the player (say a vesion 9) it works perfectly!
    Also, since I got this update today, my shared objects no longer load completely or correctly.  What I did was encrypt my data, parsed it as xml, and then sent this object to be saved into the SOL file.  They don't work the same anymore.  But the same code ran on a version 9 player works flawlessly.
    This happens consistantly with upgrades of flash player, just different issues crop up, and I cannot request my network admin not upgrade the flash player, as it would effect over 10k workstations.
    I am at my wits end here!  Anything, anybody got a bone to throw my way?  Any ideas?

    Hello, rjcjsc. 
    Thank you for visiting Apple Support Communities. 
    I understand that your Mac is restarting because of a problem and appreciate you including the log file.  Here are the most relevant troubleshooting steps for this issue.  However, the most likely cause for this would be your security software, Kaspersky. 
    Software troubleshooting
    Disconnect the external drive used in the above test to determine the kernel panic is due to a software based issue.
    Start the Mac from OS X Recovery and reinstall OS X on your Mac.
    Start from the installation of OS X you just created.
    Use Software Update to install all updates until it reports "Your software is up to date."
    Download and install any third-party software updates before reinstalling third-party software, especially drivers and kernel extensions.
         Examples include:
    Virtualization software
    Drivers for add-on third party display cards
    Anti-virus software
    Networking software (especially software which enables third party network devices)
    Add-on file system support software; for example, software that lets your write to NTFS formatted media.
    If the issue continues, you will need to erase and install OS X as follows:
    Start the Mac from OS X Recovery.
    Complete a disk image backup via Disk Utility of the internal drive to an external drive with enough free space.
    Erase the internal drive using Disk Utility.
    Install OS X.
    Start from the internal drive.
    Use Software Update to install all updates until it reports "Your software is up to date."
    Re-install your third-party apps and copy your user data from the disk image backup you created in step 2.
    Note: Avoid copying data from the /Library and /System folders on your backup disk image.
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem."
    http://support.apple.com/en-us/HT200553
    Cheers,
    Jason H. 

  • Caching Issues with Adobe Flex and HTTPservice

    I faced a strange issue a coupla days back. In one of my Applications I had a Timer which would fire every 10 secs and would fetch data using a HTTPService call when fired. Surprisingly though, the initial results fetched by the HTTPservice was cached and would not reflect any changes when the data changed in the background, in IE, however the problem would not occur in Firefox !
    I sort of hacked the HTTPService url to add a random number at the end of the call to make it believe that it was calling a different URL every time and it worked. But I would definitely like to know the reason for this behavior

    Hi, Abesh. 
    I ran into the same thing, but it did not do this until recently!  I had recently installed Flex 3.0 beta, so maybe something changed with the compiler and/or the Flash VM in this regard.  Also, you can change the behavior of the Flex/Flash runtime by changing the caching settings in IE (check page for newer version on each visit).
    Rick

  • Issues with removing Flex data binding to use Air 14

    Hello,
    I was wondering if anyone had optimal solution for replacing the Flex data binding classes in Air 14. I'm unable to merge the Flex and Air SDK together anymore so all the binding handlers need to be replaced. Has anyone else run into this issue yet? The automated binding generation and handling was the best feature of Flex and now that it's broken it creates huge issues for me.
    This is for Air desktop and mobile applications. They still build just no of the event handling works.
    Cheers,
    Pete

    I had forgotten I solved this myself last Dec. So basically from what I can tell the precompiler no longer does any [Bindable] conversions so you have to manually create the getters and setters for your model when this changes. I hope this helps anyone who may run into the same problem. There's literally no documentation on this any wheres.
    i.e.
    [Bindable]
    public var username : String;
    becomes
    private var _username : String;
            [Bindable(event="propertyChange")]
            public function get username():String
                return this._serviceState;
            public function set username(value:String):void
                var oldValue:Object = this._username;
                if (oldValue !== value)
                    this._username = value;
                    if (this.hasEventListener("propertyChange"))
                        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "username", oldValue, value));
    You also need to make sure what ever class contains this property implements IEventDispatcher and has the following functions:
    IEventDispatcher implementation
    private var _bindingEventDispatcher:flash.events.EventDispatcher =
    new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
      * @inheritDoc
    public function addEventListener(type:String, listener:Function,
      useCapture:Boolean = false,
      priority:int = 0,
      weakRef:Boolean = false):void
    _bindingEventDispatcher.addEventListener(type, listener, useCapture,
    priority, weakRef);
      * @inheritDoc
    public function dispatchEvent(event:flash.events.Event):Boolean
    return _bindingEventDispatcher.dispatchEvent(event);
      * @inheritDoc
    public function hasEventListener(type:String):Boolean
    return _bindingEventDispatcher.hasEventListener(type);
      * @inheritDoc
    public function removeEventListener(type:String,
    listener:Function,
    useCapture:Boolean = false):void
    _bindingEventDispatcher.removeEventListener(type, listener, useCapture);
      * @inheritDoc
    public function willTrigger(type:String):Boolean
    return _bindingEventDispatcher.willTrigger(type);

  • I'm having issues/glitches with Flex Pitch

    When I analyze any vocal track with flex pitch, It messes up quite a few of my notes and tunes with weird buggy sounds,skips & stutters.
    sometimes with gargly noises as well. When I decide I just won't flex pitch that area and delete the flex pitch, it's already messed up my track and won't go back to sounding normal. I want to know how to get rid of it! or at least how to fix that problem. even if there's an easier way to just actually delete it. I've even tried to make a seperate track for just the vocal parts that are haing issues, but it's still there when i move it. I feel like it's corrupt my vocal track and i'd like to use to one i already have instead of rerecording all the time .
    Any help would be greatly appreciated
    Here is a small sample of my problem in the vdeo link below and one of the smaller glitches. it's very noticable when the whole track is playing too.
    https://vimeo.com/78046518

    Same issue for me. Has happened on different projects and different kinds of tracks (vocals and guitars)

  • Issue with Adobe flex data.xml file not reachable from bsp behind firewall

    Hi Gurus,
    I have a problem with the <mx:HTTPService> tag the following is the actual tag,
    <mx:HTTPService
    id="Srv"
    url="data.xml"
    useProxy="false"
    method="POST" result="resultHandler(event)"/>
    When accessed locally I can see the data in the flex as the data.xml can be reached. when the same is accessed from internet behind firewall, the url is entirely different and the .swf file in the BSP page cannot access the data.xml. I cannot give the absolute url in the tag as the BSP page application is accessed differently in different servers. any help on this would be greatly appreciated
    Thanks
    Akbar

    Sorry somehow I missed this question, an even easier way to do this is to allow your Flash movie to "script" ( this is the default behavior for a Flex application ) and then call some javascript to obtain exactly what the page URL is and then go from there to get your data:
    import flash.external.ExternalInterface;
    import mx.utils.URLUtil;
    var
    if(ExternalInterface.available){
         pageURL = ExternalInterface.call("window.location.href.toString");
    // Do whatever you need with the URL here.
         var serverName:String = URLUtil.getServerNameWithPort(pageURL);
    -d

  • Issue with Adobe flex redeployment

    when I redeploy Flex web application by copying all files from bin-release to IIS , after refreshing or re-open the browser(chrome/IE)the client side still using the previous files, I have to clear web browser history to get the latest files, my server side properties:
    windows server 2008 R2 standard
    64-bit operating system
    client side:
    windows 8/7
    64-bit operating system
    adobe flash builder 4.5 to export the release

    Sorry somehow I missed this question, an even easier way to do this is to allow your Flash movie to "script" ( this is the default behavior for a Flex application ) and then call some javascript to obtain exactly what the page URL is and then go from there to get your data:
    import flash.external.ExternalInterface;
    import mx.utils.URLUtil;
    var
    if(ExternalInterface.available){
         pageURL = ExternalInterface.call("window.location.href.toString");
    // Do whatever you need with the URL here.
         var serverName:String = URLUtil.getServerNameWithPort(pageURL);
    -d

  • Issue in setting flex app in load balanced environment using SSL

    I have developed the dashboard in my application using flex 3.0. For this I have used JSP wrapper around the flex application. My application runs on JBoss application server. for communication between flex app and my application i am using LCDS. HTTPService component is being used to receive data from the server. Channel definitions are given in service-config.xml for amf and http channels and for both secure secure and not secure mode. In my proxy-config.xml i have defined Channels and destinations.
    services-config.xml
    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
        <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
        <properties>
              <polling-enabled>false</polling-enabled>
        </properties>
    </channel-definition>
    <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
        <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
        <properties>
              <add-no-cache-headers>false</add-no-cache-headers>
        </properties>
    </channel-definition>
    <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
        <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
    </channel-definition>
    <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
        <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
        <properties>
            <add-no-cache-headers>false</add-no-cache-headers>
        </properties>
    </channel-definition>
    proxy-config.xml
    <default-channels>
        <channel ref="my-http"/>
        <channel ref="my-amf"/>
        <channel ref="my-secure-http"/>
        <channel ref="my-secure-amf"/>
    </default-channels>
    <destination id="dashboardService">
        <properties>
    <url>/kr/servlet/DashboardServlet</url>
        </properties>
    </destination>
    <destination id="dashboardJSPService">
        <properties>
    <url>/kr/krportal/dashboardJSPService.jsf</url>
        </properties>
    </destination>
    In my development environment both secure and non secure mode were working fine. Now when I have deployed it behind the load balancer(which accepts secure requests only and if the request is not secure it redirects it to secure url) there is no response from the message broker servlet. One thing more I have observed is when the environment is non load balanced there are request like 'http://{server.name}:{server.port}/{context.root}/messagebroker/http'. and these requests are post request. But in load balanced environment with ssl the request is again like 'http://{server.name}:{server.port}/{context.root}/messagebroker/http' which is a post request and it is redirected to 'https://{server.name}:{server.port}/{context.root}/messagebroker/http' which is a get request. The content returned by this get request is null.
    Looking for some comments
    Thanks
    Abhishek Gupta

    if the load balancing environment is already well configured, thes rest is very easy, there is no difference between a configuration of load balancing environment and a simple one, for you that is transparent, except the manual deployment and manual copying
    of files in the directory 15

  • ADT iOS PFI Issue with a Flex 4.1 project.

    I know, I shouldn't be compiling flex for the iPad yet, but I gotta!
    I'm getting an error when running PFI, any help would be AWESOME!
    Exception in thread "main" java.lang.Error: Unable to find named traits: mx.collections.errors::SortError
    at adobe.abc.Domain.resolveTypeName(Domain.java:195)
    at adobe.abc.Domain.resolveTypeName(Domain.java:112)
    at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:274)
    at adobe.abc.GlobalOptimizer$InputAbc.readCode(GlobalOptimizer.java:983)
    at adobe.abc.GlobalOptimizer$InputAbc.readBody(GlobalOptimizer.java:531)
    at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:404)
    at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:280)
    at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:160)
    at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:329)
    at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600)
    at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:196)
    at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:366)
    at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65)
    at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165)
    at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
    at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152)
    at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
    at com.adobe.air.ipa.PFI.main(PFI.java:112)

    Compiling the AIR application through amxmlc worked
    Tanu

  • Audio Issue Croaking on Flex 2 15

    Laptop just bought, first start, croaking sound occasionally. System recovered, problem is not fixe. Same problem even with headphone. Laptop immediately changed by the seller. The new laptop has the same problem. Windows OS 8.1. Remarks: At the moment the problem shows itself the CPU works near the maximum, when the problem ends the CPU back to normal.

    Have you tried updating the audio drivers?
    Select driver as per your current OS
    http://support.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/flex-2-15-notebook-lenovo

  • Flex Table Add Row Issue with Dynamic Entry Lists in Visual Composer

    All,
    Your help would be kindly appreciated in resolving an 'Add Row'-issue within a Flex Table that uses Dynamic Entry Lists in Visual Composer. The issue here is as follows :
    When I use a [Local Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=O5hrG2aMxWZ84Mu1211193041]to populate a row field, the initial row and all next rows are emptied upon 'insert row', they loose their selected values and also the entry list values ('pull-down menus') are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    The initial row does [show the entry list values |http://www.postyourimage.com/view_image.php?img_id=2HybmEHAuQYs9cg1211192766]from the Local Dynamic Entry List based on the dynamically assigned input value; upon 'insert row' the entry lists are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    When using a [Global Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=m5p2KYuBb442dTq1211193501]to populate the row fields the Flex-table behaves normally as expected. Unfortunately with a Global Entry List it is not possible to dynamically assign a input value. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=U96V0zENCCyO3gA1211193157].
    Please also see the [issue summary image|http://www.postyourimage.com/view_image.php?img_id=06xti08tIEfely1211195178] I made to visualize the issue.  What I basically would like to know is whether this is a 'known issue' or not, or that it is an issue that can be fixed or whether there is an alternative workaround available ... I'm using Visual Composer 7.0 and the Portal is at SP 13.
    Many thanks,
    Freek

    Hi,
    you should be able to assign a dynamic value with global entry lists as well. If you say @myParam as dynamic value. VC will indicate in red letters, that the field @myParam is unknown. However, it will work, as long as @myParam is known in the form or table where you use the entry list.
    I have never heard of the problem that entry lists are emptied after "insert"-event.
    Kindes Regards,
    Benni

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

Maybe you are looking for

  • How to change the HDD on Satellite Pro 430CDT

    Can anybody tell me where I could find simple instructions telling me how to dismantle my old 430CDT in order to fit a larger hard drive? I'm thinking of replacing the 1.25gb drive with a 4 or 6 gb hdd - assuming the drives I have can be persuaded to

  • Error in loading DLL SAPbouiCOM

    Hi gurus, I'm installing SBO2004 PL41 and when I run my SDK it says Error in loading DLL when I debug in VB it stops in line saying set oSboGuiApi = new SAPbouicom.sboguiapi I'm using windows 2003 server. Any idea how to solve?

  • Different figure display between Balance and Line items

    How can I find out the difference between line item and Balance in FS10n? Actually when I Executing the FS10N the balance of DR. balance is greater then that account Dr. Balance line item. Can any one tell me why? Thanks & Regards, Anandakumar

  • Enhanced Receiver determination - Fatal Error.

    Hi All, We are using Enhanced Receiver Determination. We are getting Fatal error in SXMB_MONI though our Intarface mapping is working correctly but when tried testing from runtime work bench we are getting error. The error message shows SAP:Code area

  • Scale selection to document height, and center on width+height of page

    Hi there I've got little experince with ID-scripting. Can anyone help me out here? It should be really simple What I'm doing now is pasting my graphics and then check the doc height in the 'Document Setup' and type the doc height in mm in the scale-h