How to filter datagrid flex with 3 three check boxes?

Hi guys,.

I'm new to flex.

I need your help. Can someone help me please.

My requirement:
Flex Datagrid should be filter based on the 3 checkboxes. (The check boxes can be checked with several combinations).

* My Code: *.

* Boxes: *.

< mx:CheckBox id = 'done' label = click "Done" = "" / >

< mx:CheckBox id = 'onhold' label = click on "Pending" = "" / >

< mx:CheckBox id = 'inprogress' label = click 'In progress' = "" / >

* Data provider: *.

< mx:ArrayCollection id = "arrColl" >
< mx:source >
< mx:Array >
< mx:Object Status = "In progress" title = 'java' grade = 'A' / >
< mx:Object Status = "Completed" title = 'c' grade 'B' = / >
< mx:Object Status = 'Suspended' title = 'c++' grade 'C' = / >
< mx:Object Status = 'pending' title = 'flex' rank = "D" / >
< mx:Object Status = "Completed" title = "cobol" grade = 'E' / >
< mx:Object Status = "In progress" title = "python" grade = 'F' / >
< mx:Object Status = "Completed" title = "SAP" grade = 'G' / >
< mx:Object Status = "In progress" title = 'Oracle' grade = 'H' / >
< mx:Object Status = 'pending' title = 'Sybase' grade = 'I' / >
< mx:Object Status = "In progress" title = "HTML" grade = 'J' / >
< mx:Object Status = "In progress" title = "JSP" grade = 'K' / >
< mx:Object Status = 'pending' title = "Servlets" grade = 'L' / >
< / mx:Array >
< / mx:source >
< / mx:ArrayCollection >


* MXML code: *.
< mx:DataGrid dataProvider = "{arrColl}" id = "dg" / >

Here I have to filter datagrid when I check various combinations of 3 boxes.
The checkbox values come from Staus arraycollection collection column.
When I select the checkbox 'complete' and 'onhold' box, datagrid should display only the records that have the status as 'Complete' and 'pending '.
The same for all combinations of selection boxes.

Can anyone give simple solution please?

Thank you
Anand.k

I don't understand.

I tried flex 3.5 and it worked. Code:



    
        
    

    

    

    

    
        
        
        
        
        
        
        
        
        
        
        
        
    

    

Could you try to run this code on a new application and see if it works?

Tags: Flex

Similar Questions

  • Printable version with Radio buttons/check boxes

    I have a form that works very well and that has check boxes and radio buttons.

    All is well in shape.

    But now I need to create a printable form when the user is finished.

    The problem is when the user gets the printable version, they can always click on the radio buttons/boxes.
    (I know that is not write in the db)

    How can I create this printable version so that the radio buttons/boxes cannot be modified?

    Since it is printing a single page, you can consider making the images of your radio buttons and checkboxes. Two radio buttons, a check and the other not controlled; same for the boxes.

    The code below should give you the idea.

  • How to find the previous mouse clicked the check box

    Hello

    In my form with detail and header boclk

    For example: in a canvas
    Header 
    -----------
    item1                    item2                    item3
    item4                    item5                    item6
    
    Detail
    ---------
    
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    My requirement is now knowledge/capture when the user clicks the check boxes.
    If he clicks on the 1st record or record of 5th or 3rd I wants to get these values and that it must handle
    further...

    Thank you.

    Hello

    When you click anywhere in a recording, it becomes the current record, and you can get/set values using domain names.
    When the user clicks a control checkbox, its trigger raises the when-box-change and you know its value (if it is selected or deselected).

    François

  • How search/filter DataGrid

    Hello

    This is of course related to the Flex 2. I use an httpservice to fillup a datagrid. The question is, how do I filter data in the DataGrid based on an input string, as a search/filter feature.

    see you soon,

    Hello
    If your datagrid control then uses a collection of array as a dataprovider, you must use the arraycolletion.filterfunction to do it, if not, then try using a collection of table.

  • How to filter a form with pagination?

    Hi all

    I converted an app to Apex 3.1 (thanks to helpful people here), but am stuck on the final form. I want to rationalize the form master / detail, ignoring the tabular report in detail. Here is (almost) a shell of what I'm trying to do:

    [http://apex.oracle.com/pls/otn/f?p=57085 | http://apex.oracle.com/pls/otn/f?p=57085]

    I would like to the selection list in the upper region to be able to filter the results in the lower region, showing a row of info at once in a form. The above example is not nearly as complex as the real form, which I am using, of course, but it should show what I'm trying to do.

    I've implemented the calculation for P1_EMPNO as:
    select min(empno)
    from "#OWNER#".emp
    where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
    .. .with a conditional P1_EMPNO is null. Similarly, the extraction of the line contains the same WHERE clause as above.

    I was turn in a circle, trying to debug this, prototyping, several formulas to test combinations of branches, SQL and such, but no luck.

    Did anyone done this before? I see a few semi closed discussions here, but they seem to end up in a report.

    TIA!
    Rich

    Published by: socpres on December 1st, 2008 13:48 - minor change: changed SQL to use the code tag

    Hi rich,

    Sorry - just seen elsewhere.

    Yes, I did something like this before (although the filters were handled on a separate page, the principle would be the same thing).

    The important parts are the selection of the first record, the ID for the next and previous recordings, the conditional display of the next/previous buttons and how to set the current id EMPNO.

    1 - you already have a form on the page, the first record can be defined using a calculation of front page header that is conditional on the PK field is null and use your code as a source:

    select min(empno)
    from "#OWNER#".emp
    where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
    

    2. you should then have hidden items NEXT and PREVIOUS on your page. These must be calculated using calculation before header on EACH page load (IE not conditional) and using SQL queries:

    Previous (say name of the element of P1_PREVIOUS_EMPNO):

    select NVL(max(empno),0)
    from "#OWNER#".EMP
    WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
    AND EMPNO < :P1_EMPNO
    

    Following (say name of the element of P1_NEXT_EMPNO):

    select NVL(min(empno),0)
    from "#OWNER#".EMP
    WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
    AND EMPNO > :P1_EMPNO
    

    3 - your next button should depend on P1_NEXT_EMPNO is not 0 and your back button must be subordinated to P1_PREVIOUS_EMPNO is not 0

    4 - the next button should trigger a branch that sets the value of P1_EMPNO to P1_NEXT_EMPNO and your previous button must P1_EMPNO of P1_PREVIOUS_EMPNO

    5 - your branches has been triggered by the filter and Reset buttons must reset P1_EMPNO null (the calculation will calculate this new)

    Then, when the page is loaded, the first EMPNO which match the filter is determined and the previous EMPNO is automatically calculated and shown/hidden buttons as appropriate. By clicking next or previous made scroll through records and new Previous EMPNO are calculated each time. When a new filter is applied, or the page is reset, the EMPNO is cleared out and I recalculated according to the current filter.

    Andy

  • How to filter an email with a line of "answer to" in the header?

    During some spam filtering I noticed the address "From" varies, but there is a constant e-mail address in another line ' answer to. " I tried to add a personalized tag but 'Reply To' causes an error message. If I could filter the "Reply To" line I could get rid of a major source of spam.

    Thanks Matt & Zenos. It turns out that the answer is "Reply-To" number of colon.

  • How to filter the result with a where clause clause?

    Hello

    I have a nice sql query. I would like to include a where clause with a joker clause.

    If the user selects for example a "AGENT_ID", then where clause would include the AGENT_ID, otherwise, every thing would appear.
    SELECT 
       "FICHE"."FICHE_ID" "FICHE_ID", 
       "FICHE"."AGENT_ID" "AGENT_ID", 
       "FICHE"."EQUIPE_ID" "EQUIPE_ID", 
       "FICHE"."DATE_ACTIVITE" "DATE_ACTIVITE", 
       "FICHE"."DATE_CREATION" "DATE_CREATION", 
       "FICHE"."TYPE_FICHE" "TYPE_FICHE", 
       "FICHE"."FICHE_CREE_PAR" "FICHE_CREE_PAR", 
       "FICHE"."TOTAL_HEURES" "TOTAL_HEURES", 
       "FICHE"."TOTAL_HEURES_EXCEPTIONNELLES" "TOTAL_HEURES_EXCEPTIONNELLES", 
       "FICHE"."DATE_MODIFICATION" "DATE_MODIFICATION"
    FROM 
       "FICHE"
    The WHERE clause:
    WHERE AGENT_ID = ' * ' if nothing is selected.

    WHERE AGENT_ID = "4290" If an agent ID is selected.

    Hope I'm clear that English is not my mother tongue.

    Thanks for you help.

    Christian

    Hello

    Try this

    WHERE "FICHE".AGENT_ID like NVL(:val, '%')
    

    see you soon

    VT

  • Hi can someone tell me how to get in touch with microsoft to check if my code is correct

    Hi all can someone tell me how I can contact microsoft to varify my coa is for the correct version of windows that the coa sticker worn if wrong that only the code itself is visible please help

    If the certificate of authenticity is attached to a computer, you must contact the manufacturer of this computer using.

  • How to delete several records by selecting the check box

    Hi I am a newbie in oracle forms Builder. I want to delete multiple records at the same time, when I click on the button. I have a 'emp_block' and 'control_block '.

    emp_block information: -.

    I have all the columns displayed in this block as empno, ename, sal, hiredate, deptno, comm.

    Other than that I add a new item of type "checkbox" and his name is "checkbox".

    control_block information: -.

    I have a "push button" in this control block.

    I added trigger "when-button-pressed" and write this line of code: -.

    EXECUTE_TRIGGER("ON-DELETE");

    COMMIT;

    "DELETE" is a trigger of form level. In this trigger, I wrote this code: -.

    BEGIN

    DELETE FROM EMP WHERE EMPNO =: EMP_BLOCK. CHECKBOX;

    END;

    Problem: -.

    Not one selected record is deleted when I click on the button Delete.

    I want to check little matter how much and when I press on delete button it has deleted all records whose box has been checked.

    Please help me...

    Welcome to the forum.

    In your WHEN-BUTTON-PRESS-trigger, just put your entire code and remove this EXECUTE_TRIGGER thing.

    To remove all verified records within a block, you must loop through the block and delete each record, something like

    BEGIN
      GO_BLOCK('YOUR_DATA_BLOCK');
      FIRST_RECORD;
      LOOP
        EXIT WHEN :SYSTEM.RECORD_STATUS='NEW';
        IF :YOUR_DATA_BLOCK.CHECKBOX='Y' THEN
          DELETE_RECORD;
        ELSE
          EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
          NEXT_RECORD;
        END IF;
      END LOOP;
    END;
    

    Make sure that you set the property "value when checked" section of box check "Y".

  • How to avoid the images double click at check boxes?

    I'm recording a simulation of a person using a licensing system.  Whenever I save it I get an image split on all boxes click - Help?  Never, I get this when I go through the process without registration, only when recording.  This is why Captivate must be the origin of the problem.  Any help would be appreciated.  Here's an example of what I mean, the login screen should show only once, but it gives you a double image.  He does this with every box.

    eg double screen.JPG

    Hello

    Can you please try to disable the following: Edit-> preferences-> registration-> 'Move new Windows in registration area' and then let us know if your problem solved?

    See you soon

    Siva

  • With value of check box for show/hide radio buttons?

    I have created a pdf form. I have a checkbox and radio buttons several. I put it so radio buttons are hidden until the user clicks on the checkbox above him. I also put the box reset option on mouse-to top buttons. However, radio buttons are always selectable. I want to assure you that if one of the radio options is selected, the check box to be checked as well.

    Is there a bit of javascript, I could add to the check box to hide the option buttons if its value is not equal to yes (checked)?

    You can use code similar to

    If (event.target.value == 'Yes') {}
    selected - display radio buttons
    this.getField('Radio_Button1').display = display.visible; view the radio button
    } else {}
    Show box unchecked hide radio button and reset the field
    this.getField('Radio_Button1').display = display.hidden; Hide radio button
    this.resetForm (["Radio Button1'"]); Disable the option button
    }

    But YOY will have to change the field "Radio Button1" name match your fyouor domain name to the Group of radio buttons.

  • How to filter all records if user check all option in the box.

    Hi friend

    I created the search box to filter the report so I created check box for filtering and implemented agent under SQL query in the list of values

    SELECT NAME, CODE R FROM AGENT_MAS

    UNION

    SELECT 'ALL', 'ALL' D DOUBLE R

    and my area code are below

    SELECT AGENT, CODE, TYPE FROM AGENT_MAS WHERE (to_char (ARR_DATE, 'MM') > '04' = and to_char (ARR_DATE, 'MM') < = "12")

    and to_char (ARR_DATE, 'RRRR') =: P10_YEAR

    and ((: P10_AGENT is not null and (instr (': ' |: P10_AGENT |': ',' :'||)))) AGENT_CODE: ': ', 1) > 0)) or: P10_AGENT is null)

    and

    ((: P10_MARKET is not null and (instr (': ' |: P10_MARKET |': ',' :'||)))) MARKET_CODE: ': ', 1) > 0)) or: P10_MARKET is null)

    AND

    ((: P10_MONTHS is not null and (instr (': ' |: P10_MONTHS |': ',' :'|| to_char (ARR_DATE, 'MY'): ':', 1) > 0)) or: P10_MONTHS is null)

    GROUP BY AGENT

    filter work well, but I must add filter with 'EVERYTHING' if the user select EVERYTHING in the box, then all the registration should be filter.

    How to view all archives if user check all checkbox option.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi friend

    I created the search box to filter the report so I created check box for filtering and implemented agent under SQL query in the list of values

    SELECT NAME, CODE R FROM AGENT_MAS

    UNION

    SELECT 'ALL', 'ALL' D DOUBLE R

    and my area code are below

    SELECT AGENT, CODE, TYPE FROM AGENT_MAS WHERE (to_char (ARR_DATE, 'MM') > '04' = and to_char (ARR_DATE, 'MM'))<>

    and to_char (ARR_DATE, 'RRRR') =: P10_YEAR

    and ((: P10_AGENT is not null and (instr (': ' |: P10_AGENT |': ',' :'||)))) AGENT_CODE: ': ', 1) > 0)) or: P10_AGENT is null)

    and

    ((: P10_MARKET is not null and (instr (': ' |: P10_MARKET |': ',' :'||)))) MARKET_CODE: ': ', 1) > 0)) or: P10_MARKET is null)

    AND

    ((: P10_MONTHS is not null and (instr (': ' |: P10_MONTHS |': ',' :'|| to_char (ARR_DATE, 'MY'): ':', 1) > 0)) or: P10_MONTHS is null)

    GROUP BY AGENT

    filter work well, but I must add filter with 'EVERYTHING' if the user select EVERYTHING in the box, then all the registration should be filter.

    How to view all archives if user check all checkbox option.

    Thank you

    To view all the archives, if the user has checked all THE option in the box, you will need to modify your report to:

    SELECT AGENT
        , CODE
        , TYPE
      FROM AGENT_MAS
    WHERE ( TO_CHAR(ARR_DATE,'MM') >= '04' AND TO_CHAR(ARR_DATE,'MM') <= '12' )
      AND TO_CHAR(ARR_DATE,'RRRR') = :P10_YEAR
      AND ( 1 = ( CASE
                    WHEN (:P10_AGENT IS NOT NULL AND (:P10_AGENT = 'ALL'))
                      THEN 1
                    WHEN (:P10_AGENT IS NOT NULL AND (INSTR(':'|| :P10_AGENT ||':',':'||AGENT_CODE||':',1) > 0 ))
                      THEN 1
                    ELSE
                      0
                  END ))
      AND ((:P10_MARKET IS NOT NULL AND (INSTR(':'|| :P10_MARKET ||':',':'|| MARKET_CODE||':',1) > 0 ) )  OR :P10_MARKET IS NULL )
      AND ((:P10_MONTHS IS NOT NULL AND (INSTR(':'|| :P10_MONTHS ||':',':'|| TO_CHAR(ARR_DATE,'MON')||':',1) > 0 ) )  OR :P10_MONTHS IS NULL )
    GROUP BY AGENT
    

    I changed the filter AGENT to include all THE option.

    I hope this helps!

    Kind regards

    Kiran

  • How a check box value can be determined?

    I want to determine which one of the three Check boxes have been selected (in this case, "verified"). I have three boxes check, each named Box1 check and each checkbox Style check. The first Box1 check has a value to the export of Oui1. The second Box1 check has a value to the export of YES2. The third check Box1 has a value to the export of Oui3.

    You have to look at the form field to the level of the widget. See the API Acraobt to JS for the property "isBoxChecked".

    var sFiedName = "Check Box1"; domain name

    FBox var = 3; number of checkboxes for field
    oField var = this.getField (sFieldName); get the field object
    Console.Show (); Console.clear();
    Console.println ("value:" + oField.value ");
    for (i = 0; i< fboxes;="" i++)="">

    loop through each occurrence of the field (widget)
    Console.println ('widget' I 'is' + (oField.isBoxChecked (i).) (('checked': 'not verified'));
    }

  • How to use the combobox control to filter datagrid in Flash Builder 4?

    Hello

    I worked through the TestDrive with Flash Builder 4 application and I would like to know how to filter a datagrid using a combobox control.  I googled the subject and results for many different versions of Flash, some who look like they're going to take a considerable amount of time to implement.  I hope, with Flash Builder 4, there is a simple way to do this without writing code pages.

    I think I can be close to getting this work by passing the combobox value in a PHP script that queries the database with a WHERE clause.

    Thakns,

    David

    On the change of the ComboBox, you can filter on the ArrayCollection.source that contains the data. And define the table filtered as the dataprovider for a datagrid. Take a look at the function of class filter Array.

    -Gerard

    http://www.gauravj.com/blog

  • How, in Illustrator CS5, select all objects with the three points (or nodes)?

    I'm fairly new to Illustrator, but it seems like it should be simple.  (It's trivial in CorelDraw X 4: after selecting an object with three knots, I go to Edition > search and replace > find objects > find objects that correspond to the currently selected object and navigate the menus left.)

    In Illustrator CS5, select options > identical do not seem to include the selection of all objects with the same number of nodes under the currently selected object.

    A double click on the magic wand tool also does not provide such an option.

    Thanks for any help.

    PS also useful would be knowing how to add other criteria to this search, for example, how to select all objects with three points * and * the current fill color.

    advictoriam,

    I'm afraid that you have better luck with the number of anchor Point.

Maybe you are looking for

  • 6 s iPhone / ios 9.2 / siri

    When I upgraded the ios to 9.2, Siri has stopped working. I can't change the language or sex, and it does not even understand the question I posed. Does anyone else have this problem? Y at - it an easy fix?

  • NOR-DAQmx tools lack

    Hi all I installed the latest versions of NOR-DAQmx and NOR-DAQmx base software. I would use the tools NOR-DAQmx (like on the video tutorial: http://zone.ni.com/devzone/cda/tut/p/id/5370) but I can not find the software (screenshot attached) tools. A

  • How do I encrypt a data file so that only I can retrieve the Info?

    How do I encrypt a data file so that it cannot be read without permission? I have a request where the client shouldn't have access to the data that I need to save for troubleshooting purposes.  (there are trade secrets, I want to protect)  My plan is

  • my keyboard sometimes goes french on me

    regularly my keyboard goes french on me, the "should be apostrophe E should be a question mark, I'm something striking

  • NTVDM system errors

    I have many 16-bit programs that I run on XP.  But lately, I get "Ntvdm has encountered system error c0h choose close to terminate the application.