Check box selected property based on the EL Expression

Hello

I create adf table with af:selectBooleanCheckbox in the first column. the checkbox from always refreshable transitional attribute (boolean).

in the same point of view, I have an Id attribute also.

I want to set enabled status this box according to the Id, when I tried to change the selected checkbox true property always, all checkboxes checked and I can change the State active or non-active normally, but when I put an EL expression (#{bindings.) ID not null? ({"true": "false"} box normally checked but becomes readonly!).

can someone help me?

using jDev Studio Edition Version 12.1.3.0.0

I think so

You check or uncheck the box according to the value in VoRowimpl iteslf.

It would be nice.

Concerning

Vincent

Tags: Java

Similar Questions

  • Select data based on the priority of the State

    ID PRO_ID PRO_OBJ_ID TASK_ID DEVELOPER_ID STATUS
    121243 4940 37506 5250 6532 REJECTED
    122063 4940 37506 5250 6532 RELATIVES
    138306 4940 37506 5250 6532 ACCEPTED
    138307 4940 37506 5250 6532 WIP




    Hello

    In the table above, I need to select data based on the State, a status which precedes CLOSE or ACCEPTED it should display all status any State which is after CLOSE or ACCEPTED, we do not consider.


    In the scenioro above, it should display only the status of first three. After having ACCEPTED, it should not display something


    Please suggest me a request how to write.


    Thank you
    Sudhir.

    Try:

    SQL> with t as (
      2  select 121243 id, 4940 pro_id, 37506 pro_obj_id, 5250 task_id, 6532 developer_id, 'REJECTED' status from dual union all
      3  select 122063, 4940, 37506, 5250, 6532, 'CLOSE' from dual union all
      4  select 138306, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
      5  select 138307, 4940, 37506, 5250, 6532, 'WIP' from dual union all
      6  select 138308, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
      7  select 138309, 4940, 37506, 5250, 6532, 'REJECTED' from dual union all
      8  select 121243, 4940, 37777, 5250, 6532, 'REJECTED' from dual union all
      9  select 122063, 4940, 37777, 5250, 6532, 'CLOSE' from dual union all
     10  select 138306, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
     11  select 138307, 4940, 37777, 5250, 6532, 'WIP' from dual union all
     12  select 138308, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
     13  select 138309, 4940, 37777, 5250, 6532, 'WIP' from dual
     14  ) -- actual query starts here:
     15  select t1.id
     16  ,      t1.pro_id
     17  ,      t1.pro_obj_id
     18  ,      t1.task_id
     19  ,      t1.developer_id
     20  ,      t1.status
     21  from   t t1
     22  where id <= (select max(id)
     23               from   t t2
     24               where  t2.status in ( 'ACCEPTED', 'CLOSED' )
     25               and    t1.pro_id = t2.pro_id
     26               and    t1.pro_obj_id = t2.pro_obj_id
     27               and    t1.task_id = t2.task_id
     28               and    t1.developer_id = developer_id
     29               );
    
            ID     PRO_ID PRO_OBJ_ID    TASK_ID DEVELOPER_ID STATUS
    ---------- ---------- ---------- ---------- ------------ --------
        121243       4940      37506       5250         6532 REJECTED
        122063       4940      37506       5250         6532 CLOSE
        138306       4940      37506       5250         6532 ACCEPTED
        138307       4940      37506       5250         6532 WIP
        138308       4940      37506       5250         6532 ACCEPTED
        121243       4940      37777       5250         6532 REJECTED
        122063       4940      37777       5250         6532 CLOSE
        138306       4940      37777       5250         6532 ACCEPTED
        138307       4940      37777       5250         6532 WIP
        138308       4940      37777       5250         6532 ACCEPTED
    
    10 rows selected.
    

    If it works then please provide us with some representative sample data again.

  • Check generate some Comp based on the drop-down list box and the selection list?

    I currently have a dropdown list with the three sizing options in it. Then I have two check boxes, one is ticked ideally would create the model to its normal size composition and if other is checked that it would reverse the widthxheight in the size of the composition. Then below that I have a "Generate" button, I want to be able to click and according to my selections, it creates the model.

    Looks like I need a kind of if then statement, but I'm having a hard time putting the two together. See below what I have so far.

    There may be missing parts, but I have it all working in a decibel pallate currently. I don't have functionality related to a button again.

    Any help would be appreciated!

    (also I don't know how to format the script spread here so apologies for that)

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

    palette controls

    templateGen.VerticalCheckbox = new Object();

    templateGen.HorizontalCheckbox = new Object();

    set the values for controls

    templateGen.comLookup = new Object();

    templateGen.compLookup = 'Template1 ';

    templateGen.compLookup = "Template2";

    templateGen.compLookup = "Template3."

    function templateGen_getHashValues (hash)

    { // {{{

    var ary = new Array();

    for (k hash) {}

    ARY.push (Hash [k]);

    }

    return area;

    } // }}}

    menu "composition".

    var panelGrp1 = templateGen.palette.add ('Panel', undefined, 'Templates Comp');

    compGrp1 = panelGrp1.add ('group', undefined, 'List templates');

    compGrp2 = panelGrp1.add ('group', undefined, 'Orientation');

    compGrp3 = panelGrp1.add ('group', undefined, 'Generate');

    templateGen.compList = compGrp1.add ('dropdownlist', LIST_DIMENSIONS, templateGen_getHashValues (bapple.compLookup));

    templateGen.compList.helpTip = "choose the type of desired here device model. All compositions are 60 fps. « ;

    templateGen.compList.selection = 'Template1 ';

    templateGen.compList.graphics.foregroundColor = darkColorBrush;

    templateGen.VerticalCheckbox = compGrp2.add ('checkbox', undefined, 'Portrait');

    templateGen.VerticalCheckbox .value = true;

    templateGen.HorizontalCheckbox = compGrp2.add ('checkbox', undefined, 'Horizontal');

    templateGen.HorizontalCheckbox .value = false;

    templateGen.generateBtn1 = compGrp3.add ('button', undefined, 'Generate');

    applyBtn.onClick =? ;

    When I work with drop-down menus, I always liked to tie the data they represent (like the width and height of the model in this case) directly to the elements.

    I run the code to really check, but it should work like this:

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

    Add models to your drop-down list and store the items in a table

    models var = [];

    models [0] = templateGen.compList.add('item','template1');

    models [1] = templateGen.compList.add('item','template2');

    models [2] = templateGen.compList.add('item','template3');

    set a width and height of each element

    models [0] .width = 1280;

    models [0] .height = 720;

    models [1] .width = 1024;

    models [1] .height = 768;

    models [2] .width = 1920;

    models [2] .height = 1080;

    Choose the item that should be selected by default

    models [0] .selected = true;

    applyBtn.onClick = function() {}

    read the width and height of the selected item

    var width = templateGen.compList.selection.width;

    var height = templateGen.compList.selection.height;

    {if (templateGen.VerticalCheckbox.value)}

    swap width and height

    var temp = width;

    width = height;

    height = temp;

    }

    now create your comp here with the given width and height

    }

  • Auto-fill text box values field based on the selection of the menu drop-down

    Try to fill in address, city, province, zip from text fields based on the selected option in a select form field. The following code works fine in Internet Explorer, but in Chrome or Firefox, after selection, text, the fields are filled with the word "undefined."

    I found a PHP script Jquery here version that would probabably do the trick.
    http://StackOverflow.com/questions/3657127/jQuery-populate-text-input-from-table-based-on-select-Valeur

    Maybe someone has a version of CF. they could share?

    Thanks in advance to anyone who can point me to a solution for this code, or a better way to fulfill my need.

    <!--> destinations with address auto-fill, city, etc.
    < script type = "text/javascript" >
    function selectAddress (list) {}
    take the first element is empty
    If (list.selectedIndex > 0) {}
    var locationID = list.options [list.selectedIndex] .value;
    locationAddress var = list.options [list.selectedIndex] .locationAddress;
    var locationCity = list.options [list.selectedIndex] .locationCity;
    var locationState = list.options [list.selectedIndex] .locationState;
    var locationZip = list.options [list.selectedIndex] .locationZip;
    document.getElementById('locationID').value = locationID;
    document.getElementById('locationAddress').value = locationAddress;
    document.getElementById('locationCity').value = locationCity;
    document.getElementById('locationState').value = locationState;
    document.getElementById('locationZip').value = locationZip;
    }
    }
    < /script >
    < b >
    < td align = 'right' bgcolor = "#FFFFFF" valign = "top" > Destination name < table >
    < td align = "left" bgcolor = "#FFFFFF" valign = "top" >
    < select name = "locationID" onChange = "selectAddress (this)" class = "smallforms" > "
    < option value = "" > SELECT the DESTINATION ››› < / option >
    < cfoutput query = "allLocations" >
    "" < option value = "" #locationName # "locationAddress =" #allLocations.locationAddress # "locationCity =" "#allLocations.locationCity #" locationState = "#allLocations.locationState #" locationZip = "#allLocations.locationZip #" > #locationName # < / option >
    < / cfoutput >
    < / select >

    Others: cfinput name = "destinationNameOther" type = "text" class = "smallforms" size = "75" >
    < br / >
    < input id = "locationID" name = "locationID" type = "hidden" > < br >

    Address: < input class = "smallforms" id = "locationAddress" name = "locationAddress" type = "text" size = "30" >
    City: < input class = "smallforms" id = "locationCity" name = "locationCity" type = "text" size = "20" >
    State: < input class = "smallforms" id = "locationState" name = "locationState" type = "text" size = "2" >
    Postal code: < input class = "smallforms" id = "locationZip" name = "locationZip" type = "text" size = "8" > < br / >
    < br / >
    < table > < /tr >

    In your last code done selectAddress refers to "index" but I'm not declared or assigned. I think that you are missing 'var index = list.selectedIndex;' statement.

  • by clicking on the apple logo, menus and check boxes do not work on the first click

    Strange behavior from El Capitan OS X 10.11.1.

    When I click on the Apple Logo, menus, and check boxes, the action does not stick.

    To open the Apple Logo, the menu appears quickly but then folds upwards, as if I had not clicked.  Pretty well, click on the third, the menu opens.

    In the Finder, when I click on a menu like file, edit, or display, the menu appears, and then restores upward. Again, after three clicks in opens.

    In Safari, on a page Web, clicking on a checkbox does not stick. I need to click three times.  I when in Safari settings to clear the cache, I also checked the box to request the site "don't follow me." And even in the actual application of Safari, the box wouldn't fit.  I clicked it three times before the box stuck.

    Installation program:

    iMac 24 - early 2008

    4 GB

    El Capitan 10.11.1

    I changed the mouse, and this has solved the problem.

  • Poller DB to select records based on the timestamp

    Hi all

    I want select records from the coloumn timestamp where the timestamp is older than an hour. Is it possible to do this through poller db? I tried but unable to pass the dynamic value (currently - 1 hr)

    Thanks in advance!

    Eventually create a view based on the timestamp and singled out the dbpoller view.

  • Select lines based on the State of the same line

    Hello

    I have the following table structure and lines defind here
    http://sqlfiddle.com/#! 3f474/4/3

    I want Select if lines
    PRODUCT_NO
    is null, then I need to select rows that have the IS_PAYABLE = 'Y '. If
    PRODUCT_NO
    is not null
    then IS_PAYABLE will be ' no or IS_PAYABLE will be null.

    For example
    For PRODUCT_REG HPO_FABRIC, a
    PRODUCT_NO
    NULL if I need select this line only, not the other two rows.
    I can do
    select * from SUPPLIER_DETAILS where  IS_PAYABLE='Y'
    , but if there are many records with null or not null PRODUCT_NO

    How can I do this using sql?
    select
      PRODUCT_REG,
      PRODUCT_SUPPLIER_CODE,
      PRODUCT_NO,
      START_DATE,
      END_DATE,
      IS_PAYABLE
    from (
    select
      PRODUCT_REG,
      PRODUCT_SUPPLIER_CODE,
      PRODUCT_NO,
      START_DATE,
      END_DATE,
      IS_PAYABLE,
      row_number() over (partition by product_reg order by decode(is_payable,'Y',1,'N',2,3), product_no nulls first) rn
    from
    SUPPLIER_DETAILS
    )
    where
    rn = 1
    
    PRODUCT_REG     PRODUCT_SUPPLIER_CODE     PRODUCT_NO     START_DATE     END_DATE     IS_PAYABLE
    HPO_FABRIC     JP_008     -      08/01/2001     08/31/2001     Y
    STG_PIL     SJ_090     STG-PILLOWS     01/04/2001     01/31/2001     - 
    

    Published by: chris227 on 17.09.2012 13:30

  • Add the check box for each line in the classic report

    Hello

    I created the report classic with checkboxes in each row and added the On-Submit process, BUTTON CONDITIONAL, to determine the behavior of the boxes. The process of PL/SQL is suppose to delete the selected row from the database.

    I get the success message, but when I check the database, the line is still present in the database.

    PLSQL CODE:

    FOR i IN 1.. apex_application . g_f01 . County LOOP

    DELETE
    Of
    Registry
    WHERE
    reg_id
    = apex_application. g_f01 (i); END LOOP ;




    ORACLE APEX: 4.2

    Thank you

    ApexNewLearner wrote:

    I tried the above solution, but I get the error message.

    Don't see no error message (maybe someone else was modulate the application). As I found it, the problem was the property view as of the column being Simple Checkboxvalue box. This type of display should be used only by generated by the wizard tabular forms, not with a apex_item.checkbox2 column. When the display type is changed to Standard report column, the row is deleted if necessary.

  • Show existing check box selected? Boolean is straight 1 or 0?

    I have a box that does not appear what it is...

    < label for = "CAT_Custom_14" > related | {{destination}} < / label >

    < Input id = "CAT_Custom_14" name = "CAT_Custom_14" type = "checkbox" value = "{{destination}}" / >

    linked to the displayed as 1 or 0 in the label...

    so why don't him enter the actual box itself?

    He is editing a page and I don't want to keep re-entry box - when it should show if its been verified or not.

    Thank you very much.

    One thing to note:

    Although everything isn't about finding the value no problem, so I don't think that its irrelevant...


    I use a template ".tpl" to get the information of... like this...

    {module_webapps, 33366, a template="/tpl/job.tpl",,,true,500,,1}

    so in THIS .tpl...

    I get the details for this...

    {module_webapps, 33363, a template="/tpl/detail.tpl",,,true,500,,1}

    and here is the box called {tab_bound} or {{destination}}

    but neither as value = "{{destination}}" or value = "{tag_bound}" seems to make a difference.

    If you want the box to control, include the checked="checked" attribute.

    If you don't want control, omit the checked attribute entirely.

    Something like:

        {% if bound == 1 -%}            {% else -%}            {% endif -%}    
    

    You can omit the value attribute, it as default on .

  • Script check boxes 'select all '.

    I would like to create a box on my form which, when checked, automatically checks several other boxes. Select all / deselect all, if you want to. No idea what javascript code that would accomplish? Thank you.

    You can use something like this as MouseUp event of (main) - box:

    this.getField("Check Box1").checkThisBox(0, event.target.value!="Off");
    this.getField("Check Box2").checkThisBox(0, event.target.value!="Off");
    this.getField("Check Box3").checkThisBox(0, event.target.value!="Off");
    
  • Select texts based on the option "customer tracking/kerning.

    Hi all

    If it is possible to push all the texts of tracking/kerning table? If it is possible to attack with highlighting of text as shown below?

    Screen shot 2015-05-05 at 5.11.34 PM.png

    Screen shot 2015-05-05 at 5.12.36 PM.png

    So I put together a few lines.

    Try them and tell me if it points in the right direction.

    To use the Script, you need an InDesign file with text. Some characters have kerning (-100). On top, you need a character style in the InDesign document with the name of "red". If you change the color in the character style, you should see that the characters with kerning (-100) have given color after you run the script.

    Kind regards

    Daniel (from Switzerland)

    main();
    exit();
    
    function main() {
    
        // if there is an open document in InDesign
        if (app.documents.length > 0) {
            var myDoc = app.activeDocument;
    
            // get the selected text
            var mySel = myDoc.selection[0];
    
            if ((mySel != null) && (mySel.constructor.name == "Text")) {
    
                // create an array
                var charArray = new Array();
                alert("information \nText selected");
    
                alert("Information\n# characters selected: " + mySel.characters.length);
    
                for (var i = 0; i < mySel.characters.length; i++) {
                    var myChar = mySel.characters[i];
    
                    // if the kerning was changed
                    if (myChar.kerningMethod == "Manual") {
    
                        // output to the console
                        $.write("Character: >" + myChar.contents + "< kerning: " + myChar.kerningValue);
    
                        // if the kerning is -100 or  less
                        if (myChar.kerningValue < -99) {
    
                            // apply characterstyle to found characters no array needed
                            myChar.appliedCharacterStyle = myDoc.characterStyles.item("red");
                            $.writeln(" OK got it");
    
                            // push character into array
                            charArray.push(myChar);
                        }
                        else $.writeln();
                    }
                }
                alert("Information\nCharacters with kernig -199 found: " + charArray.length);
            }
            else alert("Warning\nNoting or no text selected");
        }
        else alert("Warning\nno document open");
    
        alert("Information\nI did my job, what about yours?");
    }
    
  • Select records based on the monthly anniversary date

    Hello

    I have a table with a field of date_added and I want to select records from monthly birthday of this field.

    for example. ID, Date_added
    1, DECEMBER 10, 2012
    2, 11 NOVEMBER 2012
    3, 10 MARCH 2012
    4, FEBRUARY 28, 2012
    5, 30 DECEMBER 2012

    So for January 10, 2013, I would like to return the documents 1 and 3 only

    I started watching the extract function, but this little falls down to the records at the end of the month. For example, on 28 February, I also include records where 29, 30 or 31 is the day of date_added. So, in the above table, I won't return documents 4 and 5, but retrieves only returns 4.

    Is there a simple function to make the request of birthday this month - have I missed something very obvious? Or I have to write a query to explicitly dates at the end of the month? So far I have not found a reasonable solution!

    I use 11g

    Thank you

    user11259857 wrote:
    Hi Al,.

    No I don't think that there is a flaw. For example, the 30 Jan is not the last day of the month, but is June 30. Thus, on 30 January I want only to interrogate all the dates falling on the 30th - 28 February, after already being interrogated on the 28 Jan. However, on 30 June, I would query the 30th of each month, as well as the 31 January, March, may, July, Aug, Oct, dec. February is a special case, being both shorter and a leap year

    Thank you

    Richard

    Hi Richard,

    so, we can assume that your needs are:

    If the day is the last day of that month, interview the day of the other months being > = day of the current month.

    That is to say:

    Jan-30 = query only 30 other months
    Jan-31 = query only 31 of the other months

    Feb-28 (non-leap years) = question 28, 29, 30 and 31 other months
    29 February (leap year) = query 29,30,31 to other months

    Mar-30 = query only 30 other months
    Apr-30 = query 30 and 31 other months

    This hypothesis is correct?

    If so, then something like this should work:

    WITH mydates(id, date_added) AS
    (
       SELECT 1, TO_DATE('10-DEC-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 2, TO_DATE('11-NOV-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 3, TO_DATE('10-MAR-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 4, TO_DATE('28-FEB-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 5, TO_DATE('30-DEC-2012', 'DD-MON-YYYY') FROM DUAL
    )
    SELECT id, date_added
      FROM mydates
     WHERE (:input_date = LAST_DAY(:input_date) AND TO_CHAR(:input_date,'DD') <= TO_CHAR(date_added, 'DD'))
        OR TO_CHAR(:input_date,'DD') = TO_CHAR(date_added, 'DD');
    
    with input_date = 28/02/2013
    
    id   date_added
    4    28/02/2012
    5    30/12/2012
    

    Kind regards.
    Al

    Published by: Alberto Faenza on 10 January 2013 15:21
    Added example

  • Select records based on the value

    Hello

    I have a table with 3 fields,
    WITH t1 AS(SELECT 'P1' po_number,'R1' route_id,1900 route_cost FROM dual
    UNION ALL SELECT 'P1','R2',2300 FROM dual
    UNION ALL SELECT 'P1','R3',1100 FROM dual
    UNION ALL SELECT 'P2','R7',1200 FROM dual
    UNION ALL SELECT 'P2','R8',4500 FROM dual)
    SELECT * FROM T1
    
    PO_NUMBER     ROUTE_ID     ROUTE_COST
    P1     R1     1900
    P1     R2     2300
    P1     R3     1100
    P2     R7    1200
    P2     R8    4500
    and I want to choose single route_id for a po_number where the cost is high
    and my output should be
    PO_NUMBER     ROUTE_ID     ROUTE_COST
    P1     R2     2300
    P2     R8     4500
    Thank you
    San

    Published by: sandeep9 on April 9, 2011 04:22
    WITH t1 AS(
               SELECT 'P1' po_number,'R1' route_id,1900 route_cost FROM dual UNION ALL
               SELECT 'P1','R2',2300 FROM dual UNION ALL
               SELECT 'P1','R3',1100 FROM dual UNION ALL
               SELECT 'P2','R7',1200 FROM dual UNION ALL
               SELECT 'P2','R8',4500 FROM dual
              )
    SELECT  po_number,
            max(route_id) keep(dense_rank last order by route_cost) route_id,
            max(route_cost) route_cost
      FROM  T1
      GROUP BY po_number
    /
    
    PO RO ROUTE_COST
    -- -- ----------
    P1 R2       2300
    P2 R8       4500
    
    SQL> 
    

    SY.

  • Check box does not appear in the user accounts (netplwiz) Win 8 "users must enter a user name and password to use this computer"

    I'm trying to implement the autologon 8 Win who was working a moment fact either. I tried the suggested solution of unchecking the checkbox in the user accounts, but this choice does not appear. I'm not on a domain, just a regular home network.

    It worked for me.

    I set up an email on my desktop and it applied security policies.  I deleted the account and password policies remained.

    This has removed the policies, and now I'm able to connect without a pw again!

    Thank you!

  • Check box does not appear in the option sign

    I was using the checkbox option in the section "I need to sign" of Adobe Reader X and now that the option does not appear. All that is there is add text and signature. That's happened? Where at - it go?

    Version Adobe Reader X 10.1.9

    Hi Sterenberg,

    Have you tried uninstalling and reinstalling.

    You try the latest version of the XI player.

    Kind regards

    Ajlan Huda.

Maybe you are looking for