The substitution of this dataProvider and FilterFunction

I use a filterFunction for a dropdownlist control function. I am also replacing a dataProvider for this control. Here is a code fragment:

private var _dataProvider:IList;
override public function set dataProvider(value:IList):void 
          {
               //if IList is ICollection view, done
               if(value is ICollectionView)
               {
                    super.dataProvider = value;
               }
               
               //make IList into ICollectionView
               if(value is IList)
               {
                    super.dataProvider = new ArrayCollection(value.toArray());
               }
               _dataProvider = value;               
          }
          override public function get dataProvider():IList
          {
               return _dataProvider;
          }

I borrowed this code from the Internet.

After that I added the code for the override of that function filterFunction does not filter the data the most. What I see is that the getter function returns the complete source of data and that is why the control displays the data of complete game and not filtered one.

Any help?

I think that you can just write .filterFunction instead of cast on XMLListCollection (subdivisions.dataProvider). and ensure that data providers can be related. including the bombers and the buyers. See the followign Url.

http://userflex.WordPress.com/2008/04/14/bindable-getters-and-setters/

change: you do collection ArrayCollection (subdivisions.dataProvider) .filterFunction after reading the code again once, I thought that it will work.

Post edited by: saisri2k2

Tags: Flex

Similar Questions

  • Cannot delete the file. Says "not not found could not find this item check the location of this object and try again."

    Cannot delete the file.  Says "not not found could not find this item check the location of this object and try again."

    I got this file from my friend got sent - is a word document, I had on their computer.  So I tried to use Disk Cleanup to delete temporary files, temporary internet files and files program downloaded.  Does not work.

    When I check the properties, there is no security tab so I can't transfer ownership in this way.

    I don't want to experiment using the way of the transfer of ownership command prompt as the name of the file is several sentences long.  I can't rename it either, of course.

    Windows 7, a week and I already have a stupid problem which has already lost an hour of my time.

    What I did was to create a Notepad file that was empty and saved in the same location as the file that won't go away.  Once registered.  I click with the right button on the new file and rename the exact name as the file problem.  Don't forget to change the file extension (ex: .doc)

    ex file problem: word.doc

    new file: word.doc

    as long as they match eachother exactly you should see the file problem disappear and once that's gone, you can delete the new file created.

  • is it far to disable the shortcut ctrl-alt-tab on windows 7 (cycle between windows) to avoid the substitution of this same shortcut (indented) in excel?

    is it far to disable the shortcut ctrl-alt-tab on windows 7 (cycle between windows) to avoid the substitution of this same shortcut (indented) in excel?

    Hello
     
    The feature you're talking about is the default value of design in Windows 7. If you have comments or suggestions, you can post your query to the Windows 7 feedback forum.

     
  • When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    Return to your LMS administrator and ask them why they have not put in place more firmly. The scenario you mention should not occur if the LMS is well attached.

    Some LMS have the contents of the course are in a folder outside the web space so that users can access the course URL directly.  For example, Moodle t - it this way and then shot the course content in a temporary folder when the learner clicks on the link ask a module.  No matter how your LMS is supposed to do, it is currently not configured correctly.

  • Hi, I have 4 of Lightroom, but it does not support the new objective of pd 10-30 for my Nikon 1. It is supported in LR5. Can I download the profile of this lens and install in LR4?

    Hi, I have 4 of Lightroom, but it does not support the new objective of pd 10-30 for my Nikon 1. It is supported in LR5. Can I download the profile of this lens and install in LR4?

    Wow! It worked! Thank you very much! You just saved me buying a new verion of Lightroom (which is of course why Adobe does not update these profiles automatically).

    Thank you very much!

  • What is the name of this icon and how do I add it?

    Too bad I can't reach a very small screenshot of this icon; that would go a long way to help you identify for me. < hmm >?

    In any case, I have two different profiles that I use, and it has an icon on toolbar (applet-addon-thingy) that I find useful and would add to the other profile. The 'magical' applet appeared in the upgrade to FF30. Its function is almost a replacement for the old Menu bar, including such items as aid (absent in the icon menu Australis!). The first two elements of the applet are: 'New tab' and "New private window" There are two columns of menu items, the latter in column two a "Help".

    The appearance of the icon: a firefox - the grey Fox and a small triangle to the right indicating a "pull-down".

    I can't find this icon in my add-ons/plugins lists, so I think it's NOT an add-on, but rather native applet FF.

    My goal: Add this functional applet even to my other profile.

    Again, I could do this much easier if I could include an attachment of bitmap, but... I do not.

    Note that you can put the Firefox menu button in the tab bar to have shown that the earlier version of the Firefox App button menu and give a background color (orange).

  • I can't update Firefox, my computer is claiming that I need permission admin (everything else to date very well) I am the admin for this computer and I have the password. Any ideas?

    I can't update Firefox, I tried to disable Firewall etc. My computer says I need permission admin to update Firefox, even if I am the owner and the administrator of this computer. There are updates available and know the password for this computer. It all started when I installed the Noscript tool (that I tried to disable them with the same results)

    This has happened

    A few times a week

    == I installed Noscript tool

    See http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X
    .....
    If you have Mac OS X 10.5 or newer then follow these steps:
    Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    Trash the current demand for Firefox to do a clean reinstall.
    Install the new version you downloaded.
    Your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks and other personal data.

  • After I restarted the 2003 server, I get a message on two of my workstations the present on this computer and the network are different

    After you restart the Server 2003 due to a storm, I now get a message on two of my workstations that are different from the current time on this computer and the network

    Hello

    This question would fit better in Windows Server Instances.

  • What is the name of this effect and how to reproduce?

    Hi guys,.

    I just take the help of the community, looking for the name of cert effect and understand to reproduce.

    If you could take a look and help me.

    Thank you for all your help.

    Pat

    b02_3.jpg

    b02_4-u14157-fr.jpg

    It is without doubt filter > aesthetics > find the edges as well as Image > adjustments > invert.

  • I clicked on the Favorites in this way and now I get TypeError: PlacesUtils.nodeIsLivemarkContainer is not a function

    When I got 28 Firefox I clicked on "Sort bookmarks" and got this nasty message from a guy who rebelled on not using Firefox does not its services more. Andy someone. Now every time I have start Firefox or click on the bookmarks menu, I get a series of three or four of these alerts tell TypeError: PlacesUtils.nodeIsLivemarkContainer is not a function. I thought it might disappear when I upgraded to Firefox 29, but it didn't. Help! How can I get rid of these?

    PlacesUtils.nodeIsLivemarkContainer has been removed since Firefox a long time ago. You must use an extension that is trying to access and the extension must be updated.

    You can open the Add-ons Manager to check updates, disable, or remove extensions.

  • my daughter forgot the password on this laptop, and now nothing can be upgraded. How do I change and reset the password

    computer is without hope, without updates

    If you have forgotten your password, if you have another user who has administrative privileges account you can log in to that account and change the password of your account of origin of the user accounts applet in Control Panel. If you do not have another account like this set upwards or that you do not have the password which you will need to log on to the built-in Administrator account. In XP Home, start the computer in Mode safe. This, by repeatedly pressing the F8 key as the computer starts. This will put you in the right menu. Navigate using your arrow up; the mouse does not work here. Once in safe mode, you will see the normally hidden administrator account. The default password is white.

    In XP Pro, you don't need to go to Safe Mode. In the home screen, do Ctrl-Alt-Del twice to get the classic Windows logon box. Type in "Administrator" and the password that you assigned when you set up Windows.

    If you reset the password of the account administrator integrated into house or have Pro and don't remember the password, use NTpasswd to change the password of the built-in to a white administrator account. Download the bootable CD .iso image file, burn with third-party burning software such as free ImgBurn , Nero or Roxio. Burn as an image, not in the form of data. Start with the media that you have created. You need to maybe change the boot order in the BIOS or obtain a menu of boot command temporary with the pressure of a special key. NTpasswd will run. Follow the instructions carefully.

    http://home.eunet.no/pnordahl/ntpasswd/

    Then, go to the user accounts applet in Control Panel and set passwords that you remember and other changes. WRITE THE PASSWORDS DOWN AND PUT THEM SOMEWHERE YOU WON'T LOSE THEM.
    MS - MVP - Elephant Boy computers - don't panic!

  • What is the difference between this forum and the forum of mosc?

    If you are MOS, then it is easy to get directed to the whole of the MOSC forums. What is the difference? Almost accidentally, I posted a question

    in mosc. The problem is that I have done in the past and got spammed into oblivion with my e-mail address of work for years. I can't tell how

    You can tell whether those email address will reveal or not. Never again!  But anyway why 2 sets of for one?

    I can't speak for all spam you may or may not have been given, but I can briefly describe the difference.

    Communities of MOS (MyOracleSupport) is mainly controlled by the members of the Support of Oracle (and other Oracle employees) and customers.  Access by the employees is reserved for customers with access to Support (MOS).  Thus, when you publish in MOSC responses usually come to an employee of Oracle or a paying customer of Oracle.

    The OTN Forum is open to the public.  The feedback you get here, from someone like me (an Oracle Product Manager) or any employee of Oracle, Oracle customers, previous clients Oracle, students, teachers, consultants, people who like to just help with technical questions, people wanting to be malicious and lawyers.  We are trying to stop the last two as quickly as possible.

    Just for the record, I watch the two Forums, but I focus more on this external one.  If my input is necessary to MOSC, one of the support team will be usually contact me and ask me to comment if I missed something.

    My hope is that by focusing my attention on this external forum, I can better gasoline which uses the product, which is new to the product, which versions are used, what features are more desirable, and what problems are most often.  It also gives me the opportunity to propose corrections to erroneous information and rumors.

    Related, but as my comment about "..." problems often encountered... ", as a result of the feedback mentioned in our last poll, I'll make a mini session at OOW14 (at the booth of DemoGround forms - time TBD soon) which will cover the WebUtil configuration.  In this informal session of 30 minutes, I'll show how quickly and easily WebUtil can be activated and form WebUtil demo in minutes.  There will be some other mini-sessions, but I thought that you would be interested in it.  Details coming soon...

  • What is the problem with this page and IE?

    Gents,

    I have this page, exported from Excel to a HTML file, added some jQuery and Spry ToolTips and published it.

    It works very well with Firefox and Chrome, but IE trips on it. It simply display a blank page.

    Here is the link to the home page: Référence PPBM5

    With FF or Chrome test results page appears without a problem with IE, it's just a blank page. It's the page that causes these problems: http://ppbm5.com/Benchmark5.html

    Who am I to spoil that IE does not work? Any suggestion is welcome.

    Ready for the same problem of crazy...

    You have

    Benchmark results<p class="reply"> <p class="reply">When I changed it to</p> <p class="reply"><title>Benchmark results

    It worked.

    Gary

  • Hello. I have Windows XP Home Edition and I buy the new inspiriom N5030 Dell laptop with DOS system, but I can't find the drivers for this laptop and Windows XP. All drivers: video, Audio, network, Wireless__Help please?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    All pilots would be obtained from the Dell website, specific to the model / tag #.

  • I'm trying to find the name of this font and where I can get it.

    logo3.png

    In fact, this is Vladimir regular Script. I think it's a font with the default installation of Photoshop.

Maybe you are looking for

  • Toshiba 48L5435DG - 3D glasses compatibility

    Hello I need help with my TV, 48L5435DGWhen I bought it included a pair of 3D glasses active, but I accidentally broke one of them I went on e - bay and ordered a new pair of FPTAG02... now my problem is that I can't make it work... Now someone if th

  • Re: Satellite L500 - HARD drive not recognized in BIOS

    Hi guys,. Yesterday, my mother-in-law has been using his computer and play some games. The computer froze and I had to force a shutdown. Upon restart, the computer continued to give the following message is displayed:PXE - E61: Media control failure,

  • Mac pro, USB keyboard not recognized at startup

    my mac pro (trash) is a wonderful device. Lately, however, it does not recognize a keyboard plugged in USB to start. I am at a loss to explain it. I need help.  Advice, anecdotes, guess wild welcome. my setup is like this: CENTRAL PROCESSING UNIT Mon

  • Mobile DATA is enabled!

    If you are a reseller and you sell one of these phones, please advise your customers that Mobile data is set on YOU! including homelessness and substance! And the first time you go to the store of Google play, it will use ALL your data to download an

  • Template toolkit interface (MIT) code generation defective in simulink

    Hello I'm running into a strange down Simulink Coder and I can't tell if this is due to a NOR / MIT but or a general problem of Simulink Coder. System: Windows 7 MATLAB/Simulink R2013b w / Simulink encoder MIT 2013 SP1 File = "NIVeriStand_VxWorks.tlc