How do you add multiple filters to an arrayCollection?

hey guys... so i have three checkboxes and when i click one of them i need to filter out my array collection according to which ones are clicked
I have the filter function working partially, but when i select multiple checkboxes i dont see anything in the arraycollection.
the code i have is
<s:VGroup x="-100" y="400">
     <mx:HRule />
     <s:CheckBox label="Approved Stories" color="#333333" selected="@{_approved}" change="filterChanged()" />
     <s:CheckBox label="Rejected Stories" color="#0184C7" selected="@{_rejected}" change="filterChanged()" />
     <s:CheckBox label="Pending Stories" color="#50C8E8" selected="@{_pending}" change="filterChanged()" />
</s:VGroup>
<s:DataGroup width="100%" height="100%" clipAndEnableScrolling="true" dataProvider="{filteredStoryDataArr}" click="itemClicked();">
</s:DataGroup>
private function returnesAllStories(event:ResultEvent):void{
     for each(var item:Object in event.result){
          storyDataArr.addItem(item);
     filteredStoryDataArr = new ArrayCollection(storyDataArr.source);
     filteredStoryDataArr.filterFunction = storyFilter;
public function storyFilter(item:Object):Boolean
     return    (!_approved || ((item.ApprovedBy > 0) && (item.DateApproved != ""))) &&
            (!_pending || ((item.ApprovedBy == -1) && (item.DateApproved == ""))) &&
            (!_rejected || ((item.ApprovedBy == 0) || (isNaN(item.ApprovedBy))));
public function filterChanged():void{
     filteredStoryDataArr.refresh();
right now if i click approved i see all the approved stories, or if i check pending, i see all the pending stories.... but if i check pending and rejected, i dont see anythign in the list... any ideas how to fix that???

Jer&Renee,
welcome to Apple Discussions.
It depends where you want them in your presentation.
Open the Media inspector and choose a playlist. In the list of entries, mark those you want to add to Keynote (use command-click to mark multiple titles not in one block).
Then drag the marked titles either on a slide or on the small Audio field (looks like a frame) in Document inspector. When you then hover the cursor at the Audio "frame", you'll see the quick info "Multiple Files". You cannot change the order or remove one of the files, but only all of them.

Similar Messages

  • How do you add multiple filters with checkboxes to an arrayCollection?

    hey guys... so i have three checkboxes and when i click one of them i need to filter out my array collection according to which ones are clicked
    I have the filter function working partially, but when i select multiple checkboxes i dont see anything in the arraycollection.
    the code i have is
    <s:VGroup x="-100" y="400">
         <mx:HRule />
         <s:CheckBox label="Approved Stories" color="#333333" selected="@{_approved}" change="filterChanged()" />
         <s:CheckBox label="Rejected Stories" color="#0184C7" selected="@{_rejected}" change="filterChanged()" />
         <s:CheckBox label="Pending Stories" color="#50C8E8" selected="@{_pending}" change="filterChanged()" />
    </s:VGroup>
    <s:DataGroup width="100%" height="100%" clipAndEnableScrolling="true" dataProvider="{filteredStoryDataArr}" click="itemClicked();">
    </s:DataGroup>
    private function returnesAllStories(event:ResultEvent):void{
         for each(var item:Object in event.result){
              storyDataArr.addItem(item);
         filteredStoryDataArr = new ArrayCollection(storyDataArr.source);
         filteredStoryDataArr.filterFunction = storyFilter;
    public function storyFilter(item:Object):Boolean
         return    (!_approved || ((item.ApprovedBy > 0) && (item.DateApproved != ""))) &&
                (!_pending || ((item.ApprovedBy == -1) && (item.DateApproved == ""))) &&
                (!_rejected || ((item.ApprovedBy == 0) || (isNaN(item.ApprovedBy))));
    public function filterChanged():void{
         filteredStoryDataArr.refresh();
    right now if i click approved i see all the approved stories, or if i check pending, i see all the pending stories.... but if i check pending and rejected, i dont see anythign in the list... any ideas how to fix that???

    there is no built-in way to do this. the only way i know is by using Mail Scripts
    http://homepage.mac.com/aamann/Mail_Scripts.html
    it has a script "Add addresses" that does just what you want.

  • How do you add multiple iTunes to Keynote

    How do you add multiple songs from the iTunes to your Keynote presentation?

    Jer&Renee,
    welcome to Apple Discussions.
    It depends where you want them in your presentation.
    Open the Media inspector and choose a playlist. In the list of entries, mark those you want to add to Keynote (use command-click to mark multiple titles not in one block).
    Then drag the marked titles either on a slide or on the small Audio field (looks like a frame) in Document inspector. When you then hover the cursor at the Audio "frame", you'll see the quick info "Multiple Files". You cannot change the order or remove one of the files, but only all of them.

  • How do you add multiple users to an itunes account

    how do you add multiple users to an itunes account

    First :
    Using an iPhone without a wireless service plan
    Then restore the iPod to factory settings/new iPod on the computer your kids will use:
    iTunes: Restoring iOS software
    If you are using the same computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • How do you add multiple effects to the same clip

    How do you had multiple effects to the same clip. I have tried for hours
    I would like to add sepia and aged movie to the same clip. I heard it can be done, but have not figured out how to do it.
    anyone please.

    Normally you can apply only one video effect at a time. But for Sepia, black and white, and others that can be done through the video Adjustments tab, you are in luck.
    Aged Movie should already have a bit of a sepia tone.
    If you want more of a sepia tone or you want to fine tune the sepia effect you can do it with the Clip Inspector/Video Adjustments tab.
    Note: Thanks to Jeff Carlson of MacWorld for this tip.
    If you're looking for a washed-out sepia appearance, first open iMovie's preferences and turn on the Show Advanced Tools option, which adds more controls to the Video Adjustments HUD and other areas of the program. Select the clip you want to alter and press the V key. Set Saturation to 0 percent, and then drag the Red Gain slider to 143 percent, the Green Gain slider to 90 percent, and the Blue Gain slider to 53 percent (feel free to tweak these settings to customize the results). Click on Done when you're finished. Note that the clip thumbnail still appears in color, as the video was shot, but the preview reflects your changes.--JC
    If you need to apply the same settings to all clips, first select the clip you have adjusted. Then Edit/Copy. Then Edit/Select All. Then Edit/Paste Adjustments.

  • How Do You Add Multiple CSS Rules to Text?

    Hi everyone, I have these css rules in my css styles window they are all assigned to some text in a cell on my page.
    .Def14grey4 <body>
    .def14grey4 a:link <a>
    .def14grey4 a:visited <a>
    .def14grey4 a:hover <a>
    .def14grey4 a:active <a>
    .def14grey4 a:focus <a>
    How do you add (all of) these styles to the text in the first place, I know how to add the first one (.Def14grey4), you select the text in the cell and choose the rule from the drop-down menu in the css panel, but how do you add the other ones to some text as well, so that it can have the same link properties.
    Basically I have some more text elsewhere on the page and want to assign these rules to that as well.
    thanks Gareth

    You would want to change your order as shown here -
    .Def14grey4 <body>
    .def14grey4 a:link <a>
    .def14grey4 a:visited <a>
    .def14grey4 a:hover, .def14grey4 a:focus <a>
    .def14grey4 a:active <a>
    That way, the hover and the focus states are equivalent.
    How do you add (all of) these styles to the text in the first place, I know how to add the first one
    You don't really.  The 4 bottom selectors say -
    "find an element with a class of 'def14grey4', and style any link inside that element this way"
    So, <span class="def14grey4"><a href="whatever.html">Whatever</a></span> would get the pseudo-class styles, as would any of the following -
    <span class="def14grey4"><a href="whatever.html">Whatever</a></span>
    <td class="def14grey4"><a href="whatever.html">Whatever</a></td>
    <p class="def14grey4"><a href="whatever.html">Whatever</a></p>
    <body class="def14grey4"><a href="whatever.html">Whatever</a></body>
    <div class="def14grey4"><a href="whatever.html">Whatever</a></div>
    <strong class="def14grey4"><a href="whatever.html">Whatever</a></strong>
    and so on.  These examples assume that there isn't some other more specific rule that would apply to the same links.  You need to study up on the CSS cascade and specificity....

  • How do you add multiple addresses from Mail to Address Book at once?

    So let's say I receive an email to myself and 50 other recipients and I want to add those other recipients to my address book. Do I seriously have to go through and select "Add to Address Book" on each of the fifty contacts?! Tried doing a shift click which will highlight all contacts, but then when you right-click to get the "add to address book option" it only displays one single contact at the top of the menu. I know there is a way to add select and add multiple contacts to address book at once because I figured out how to do it once a long time ago and I still have the 67 card group to prove it. I just can't remember how I did it!!! Didn't think it'd be such a hard feature to re-discover. Would love some help on this! Thanks.
    David

    there is no built-in way to do this. the only way i know is by using Mail Scripts
    http://homepage.mac.com/aamann/Mail_Scripts.html
    it has a script "Add addresses" that does just what you want.

  • How Do You Add Multiple Pieces of Art to Albums?

    I know that you can add multiple pieces of art to individual songs. However, when I click "Info" on an album (or when I select multiple songs), I can only add one piece of art. I want to add art from the front and back of a CD, but I do not want to have to do this by going song by song. Any ideas on how to do this quickly? Thanks.

    there is no built-in way to do this. the only way i know is by using Mail Scripts
    http://homepage.mac.com/aamann/Mail_Scripts.html
    it has a script "Add addresses" that does just what you want.

  • How do you add multiple birthdays to one contact

    I keep searching but it seems all the tips are old form previous versions or I am missing something.  I am currently using Mac OS X 10.7.3
    I am trying to add multiple birthdays in my Address Book under one person, thier family members and I want it to sync with iCal.  I also did not see the Anniversary option in Address Book
    Please help,
    Thank you,

    This has two parts. The second one, having the extra dates sync with iCal/Calendar, I don't (yet) know how.
    The first one, though, isn't so hard. Go to Addressbook/Contacts preferences. Under templates, click on "Add field" and select "dates."
    Now you can customize the template to default with "Anniversary" or whatever other nametag you'd like to give the date field or fields.
    I'd really like to hear how, if it's at all possible, even, to have those sync in iCal/Calendar.

  • How do you add multiple cells to the LARGE function?

    I want to add several cells which are contained on different sheets and tables to the same LARGE function and select the first ranking cell value.
    How do I add these cells as a single argument for this function?

    "...and select the first ranking cell value."
    Hi eobet,
    If your actual goal is as stated, you could use MAX, which will accept a list, a range, or a list of ranges as arguments.
    LARGE accepts only a single argument to establish the set of values, plus a single argument to establish the rank of the desired value. That means you need to collect all of the vlues into a sngle contiguous group/range, then specify that range as the set. The avantage, ofcourse, is that with LARGE, you can specify that you want the 'third largest' value in the set.
    Here's an example.
    The data set is column B on tables Data 1 and Data 2.
    The set is collected into a single contiguous range on the table Aux (which may be hidden, or placed on a separate sheet).
    LARGE collects the nth value from the collected set in Aux, using this formula in the table Summary:
    A2, and filled down: =LARGE(Aux :: A:B,ROW()-1)
    MAX returns the largest value from the original data set on Data 1 and Data 2, using this formula on the table Summary-1:
    A2: =MAX(Data 1 :: B,Data 2 :: B)
    Regards,
    Barry

  • How do you add multiple facebook accounts to iPhoto

    I'm trying to add more then one account and I don't see how you can.

    Is this to iPhoto on your Mac?  If so maybe this topic will help :how do you sync more than one facebook account to iphoto?, how do you sync more than one facebook account to iphoto?
    OT

  • How do you add multiple files to template?

    I want to add several files to the CREATE DVD template batch. I don't understand how you go about doing this. It seems to only allow one.

    Try it in reverse; just drag all of your files into the Compressor batch window; select all of them, and then drag the template you want over them.

  • How do you add multiple links to a rollover image?

    Hi guys,
    I'm pretty much a novice when it come to DW, but i understand some things and can get by with a simple website(i only use design mode).
    Anyways, i understand how to use rollovers if its a basic image over image swap. My issue is, I have a link that says "T-shirts" and what i want is when you roll the mouse over that text, it swaps to another text -"1 or 2". Now on the "1 or 2" image, i want to have 2 seperate links on them.  I tried using hotspots but to no avail. Everytime, the "1 or2" text comes out as a single link. Is doing this possible? I'm using CS4 if that helps btw.
    Thanks!!

    I think you're trying to make something that is more complicated than it needs to be... First, as far as I know there is no easy way to accomplish what you're trying to do with a single image...
    The first option would be to split your initial image in half, and create a rollover effect on the left half on rollover with the specified link 1, and add a second rollover effect on the right side image so that it also changes. Do the same with the right half image - create the rollover effect along with the link for that image only, then add a rollover script that affects the left side image (I've attached a very basic sample to demonstrate in the zip folder - note that there are two rollover images - each with a separate web link, and each has a rollover effect that affects both buttons...)
    Second option is perhaps using a "Dropdown" menu that (on rollover) shows two more links... there are many ways this can be accomplished - the easiest (in my opinion) is by using the "spry menu bar". Once created, you can adjust the colors, fonts etc., and an image could be replaced on the initial link within the css... (my website is still under construction, but hopefully will show what I mean: http://www.jgigandet.com/) If you google "drop-down menu html, you'll find several other alternatives  to spry as well...
    Hope that helps...
    Jesse

  • IPhone4 - How do you add multiple #'s?

    I'm new to the iPhone, just got it last night and have to manually enter all my contacts. I'm trying to add, home, work, etc. but it's only letting me enter one number which is cell. Help!!
    Any other tips or tricks would be great, like how to delete unwanted apps that I've downloaded.

    Simplymisty wrote:
    How do I find out what version I am?
    Settings > General > About
    When I click edit below mobile is iPhone (but they don't have an iphone) and below that it says home but in gray that says email.
    If you click on the word "iphone", you could change that to anything you want (home, work, mobile, etc.). You then just add their phone number.

  • How do you add multiple images in Keynote with the same slide formatting?

    I want to add 100+ images into Keynote for a photo slideshow, and I want all of the images to be preformatted using the frame/border style I set up in one of the  master slides...I don't want the images to fill the entire slide, and the goal is to not have to touch every slide and every image.  I know I can add images individually using the media button on the photo placeholder and the photo will fill the frame I have created, but I want to do this for all images at one time.  Is there a way to do this when adding the images into the presentation, or a way to format them all at once after adding them to the presentation.  Someone please help, I have looked everywhere and have had no luck finding an answer!!!  I accidentally made this happen last week when I was playing around but I don't know what I did and I can't seem to duplicate the results.  I feel certain there has to be a fairly simply solution, something I am missing.  I am working in the most recent version of Keynote (ver 6) and on Maverick OS.

    tspencer74, I have exactly the same problem and it's driving me nuts! I'm heartened that you managed to actually do this even by accident as I've not managed to make it happen at all in spite of much fiddling. So, the big question, did you find the answer? If so can you tell me what it is please?

Maybe you are looking for

  • OpenOffice to Applications box won't go away

    Every time I open OpenOffice the "OpenOffice to Applications" box pops up. I have already put OpenOffice in the Applications folder. How do I get rid of that box? Also, another OpenOffice icon pops up on the desktop every time I open the program, and

  • Receiver XI Adapter: HTTP Port

    Hi All, Receiver XI Adapter: I have access to this system thru SAP GUI. Where can the below details be found? 1. Target Host:         Specify the host name of the receiver system. 2. Service Number:   Specify the HTTP port. 3. Path prefix? Kindly hel

  • Why do i get an intenal error 500 message when trying to download firefox 4

    I quit using firefox some time ago when this message kept appearing. I tried to download firefox 4 today and get the same message.

  • Need suggestions for proofreading online help files

    I have created online help docs off an on for many years... and have contemplated this issue several times and never come up with a really good answer. Right now, the product manager is tryiing to proof one of the online help files that i've COMPLETE

  • FM for Change Documents For User

    Hi all, We need a Function Module for tracking the changes of a user account. Is there any function encapsulating the functionality supplied by SU01 -> Information -> Change Documents for User? thanks, - ferudun