Several filters for a unique Collection?

Hello

This has probably been covered in detail.  If so, please tell me, because I was not able to find it.

What is the best way to display several multiple filtered views of a collection in MXML?  The problem I face, is that you can't apply filters to repeaters, lists, etc. However, if you apply only a single filter directly to the collection.

Let's say I have a collection of "vehicles" and I want two grids of data based on this unique collection.  A data grid displays only the trucks and the other shows, only cars.  What would be the best way to do this in MXML * with * binding?  If I add a car to my collection, so I want this new car automatically appears in the cars, not trucks grid grid, etc.

This one has been dogging me for awhile.  Maybe there's a simple solution?

Thank you!

There is!

Keep your original collection, call the vehicles.

Then wrap your collection in two different ListCollectionViews

i.e.

var car: ListCollectionView = new ListCollectionView (vehicles);

var vans: ListCollectionView = new ListCollectionView (vehicles);

Now, you can sort and filter the cars and vans separately without any of the original collection.

Tags: Flex

Similar Questions

  • Several SPID for a unique SID

    Here are the details:

    Version of database - 11.2.0.3

    node 4 RAC

    Version of the EBS - 12.1.3

    OS - AIX

    Here are the details of a session for which we see several operating system process ID. Can someone explain please why multiple SPIDs for the same sid, serial # combination.

    USERNAME SID SERIAL #.INST_ID SELECT OSUSERSPID

    ------- ------- -------------------- ---------- --------------- --------

    3651 60283 APPS412320914
    3651 60283 APPS415861340
    3651 60283 APPS44326126

    NOTE: when I try to get the sid of the above (s) spid, I get the result for one of them.

    SQL > @pid

    SQL > set echo off

    Enter the Unix process id: 12320914

    Enter the instance id: 4

    =====================================================================

    1 sessions found with 12320914 as their process id of unix for the instance number 4

    =====================================================================

    SID/serial number: 3651,60283

    In the foreground: PID: 1234 -.

    Shadow: PID: 12320914 - oracle@extendp

    SQL > @pid

    SQL > set echo off

    Enter the Unix process id: 15861340

    Enter the instance id: 4

    =====================================================================

    0 sessions found with 15861340 as their process id of unix for the instance number 4

    =====================================================================

    0 sessions found with 15861340 as their process id of unix for the instance number 4

    Scroll down to see the details of all sessions.

    =====================================================================

    SQL >

    SQL > @pid

    SQL > set echo off

    Enter the Unix process id: 4326126

    Enter the instance id: 4

    =====================================================================

    0 sessions found with 4326126 as their process id of unix for the instance number 4

    =====================================================================

    0 sessions found with 4326126 as their process id of unix for the instance number 4

    Scroll down to see the details of all sessions.

    =====================================================================

    Kind regards

    Aditya.

    You are ignoring the fact that both views report for multiple instances in a CCR environment.  A SID can coexist in multiple instances.  A SPID can coexist in multiple instances.

    Your join must include INST_ID select.

    Optional: your WHERE clause can include a filter for INST_ID select

    Hemant K Collette

  • I'm trying to download the 2 files for CS3 Master Collection ADBESTAMCS3_ESD1_WWE.7z tried several machines and settings.  He seems to have almost done so failing shows and. part.

    I'm trying to download the 2 files for CS3 Master Collection ADBESTAMCS3_ESD1_WWE.7z tried several machines and settings.  He seems to have almost done so failing shows and. part.

    Use another browser or another connection (cable), a download manager.

  • Can we make several Off features in a collection of panels and how the query-off based on the example?

    Mr President.

    Can we make several Off features in a collection of panels and how the query-off based on the example?

    Concerning

    Once again, no jdev version?

    It must be really hard to remember ehich version you are working.

    Would have given a quick glance in the docs

    featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are

    That is the answer to a message.

    The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.

    Timo

  • Several renditions for iPhone 3/4 and iPhone 5

    I need to create a folio iPhone app only viewer with several renditions for iPhone 3/4 and iPhone 5. What is the best way to go about this?

    You cannot create a unique folio for iPhone Viewer. You will need to create a multi-folio Viewer, and it must be an iPad + iPhone combined. There is no option for iPhone only.

  • Concatenate several lines in a Unique identifier

    Hi all

    I need to concatenate several lines in a unique identifier

    So, my unique identifiers are name and email_id columns.


    It is 1:M relationship as eponymous and email_id can have n number of different products, now I should


    So let's say that the name = xyz and [email protected] has 5 rows with different product info for them.

    Product # #Name #email_id

    XYZ [email protected] Ora
    XYZ [email protected] sql
    XYZ [email protected] siebel
    XYZ [email protected] erp
    XYZ [email protected] crm

    My end result would be after concatenation (seen / as a delimiter between each concatenated row):

    Product # #Name #email_id
    XYZ [email protected] Ora/sql / / erp/crm siebel

    Need help please, after several attempts, I can't seem to make it work. I thank in advance

    Published by: user13080645 on January 22, 2011 07:33

    Hello

    You should look at using STRAGG or LISTAGG - take a look on: http://www.dba-oracle.com/t_display_multiple_column_values_same_rows.htm or search the Forum of SQL for these

    Andy

  • Why am I now plugin prompts for each unique Web site I visit now with Dragon Dictate active?

    We used the Dragon Dictate pay during the last 4 months without problem (I think the last 2 versions of Firefox). Now given that the new version launched this morning, there are alert pop up for every single website visited - 'Allow www.xxxx.com to run Dragon Dictate Internet' as well as 'Keep blocking' or the 'Allow' button Why is this here since it was not present before? Surely, there must be a global setting where I can turn it off instead of having to click a button and choose 'Allow' for each unique Web site, that we are going? Or is - something that Dragon has set in the way he treats the new version of Firefox?

    30 Firefox implements click-to-play default for less common plugins. For overall pre-approve a plugin to run on all sites, you can change a setting in the page modules. Either:

    • Command + shift + a (Windows: Ctrl + Shift + a)
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. Find your plugin in the list on the right, and then change the selector to "Ask to activate" "always enable".

    Success?

  • the zoom browser constantly. (if u don't have to zoom-in for each unique site and links, and then zoom-in for them again after the closing by opening the browser)

    # zoom the browser constantly. (if u don't have to zoom-in for each unique site and links, and then zoom-in for them again after the closing by opening the browser)

    I haven't seen good eye.

    Install the extension to Default FullZoom Level and set a default zoom level:

    https://addons.Mozilla.org/en-us/Firefox/addon/6965

  • I have a laptop on vista home-use. When you look in Control Panel - be uninstall, should there be several entries for SQL server, or one or none?

    I have a laptop on vista home-use.  When you look in the control panel - and then to uninstall, should there be several entries for SQL server, or one or none?  Each entry seems to have a different digital denotation, but apparently I should have only one entry maximum.

    The reason that I ask is that I have had problems in the software.  I want to uninstall everything that is not supposed to be there.

    Some lines of programs listed show information... some lines are completed.

    When you click on a line that is complete, I am allowed the usuall to uninstall, options etc.

    When you click on a line that is not complete, I'm not allowed the option uninstall.

    The Compact Edition and the full SQL Server can be installed at the same time without any problems. I saw SQL Server2005 apparently installed by a manufacturer, perhaps to support some software they have grouped in. He could have an Acer.

    I do not know what cause the problem with the uninstall option is not available. Information to fill in these fields are in the registry.

    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall if you want to watch.

    It could be the result of a broken uninstall or a bad registry cleaner. I'm not aware of anything that would fix this. You can try this http://support.microsoft.com/mats/Program_Install_and_Uninstall

    but you may have to reinstall programs later.

    You need two redistributable Visual C++ if you have programs that need it, which is likely. They had several updates that fits into the list programs. I have two for 2005 and six for 2008.

  • OptionsProvider: Options screen displays several entries for app

    Hello

    I have 2 classes in my application (say hand and ConfigProvider). The ConfigProvider implements the OptionsProvider. Start the application, the instantiatesthe ConfigProvider hand. The ConfigProvider registers with the OptionsManager.

    When I run the application several times, I see several entries for my application screen blackberry options! The strange thing is that the number of entries that added to the screen options is not proportional to the number of times that I run the application. The behavior is very random. Sometimes I just get 2 entries and then left to 2, however when I run the application.

    The documentation for the register call, I know it will only work for once.

    If someone has come across something like this before? Can anyone help me regarding this?

    Kind regards

    TEJ

    But after a device is reset, your provider instance Options will have been deleted, not in any case this is the desired behavior.  Resetting the device deletes RuntimeStore.

  • I bought one copy of Windows 7 Ultimate, 1 pc. Now, I need to get 6 several licenses for this copy, how can I do?

    I bought one copy of Windows 7 Ultimate, 1 pc.  Now, I need to get 6 several licenses for this copy, how can I do?

    You purchase 6 additional keys on the Microsoft Store, simply specify the quantity:

    http://www.Microsoft.com/Windows/buy/default.aspx

    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-product-key

  • I pay for several months for a subscription, but the program propose to install only the demo version of the software.

    I pay several months for a subscription cloud creative but the program offers me to install only demo version of the software. Why what is happening ?

    Hello

    Please see the below help documents:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Solutions to connection errors, activation and connection with creative Cloud applications and Creative Suite

    Kind regards

    Sheena

  • When I send several documents for signature, how can we separate these documents again once I got the signature?

    When I send several documents for signature, how can we separate these documents again once I got the signature for each of them. Its way easier if I send all together, because the signatory needs to sign once and then just click on the other signature fields, but if I separate documents, how I divide again?

    Hello Anna,

    If you have a professional account, there is a feature that you can enable to recover separate documents. You can go to the account-> account setting-> general framework 'Keep the separate documents' and select Save.

    Kind regards

    -Usman

  • Is it possible to duplicate a link to the page on several pages, for example in a table of contents?

    Is it possible to duplicate a link to the page on several pages, for example in a table of contents?  I have a 140 document and each page needs a link to the table of contents.  I am familiar with how to add the link on each page, but I hope that there is a way to reproduce it, save me time.

    Are you really something under Label, on the Options tab?

  • I have my key code for CS6 Master collection how can I reinstall all the programs?

    I have my key code for CS6 Master collection how can I reinstall all the programs? my current Macbook doesn't have any CD player

    Please see the applications download Creative Suite 6

    Hope this will help you.

    Kind regards

    Hervé Khare

Maybe you are looking for