ADF Tree with Boolean Check Box: How to find selected items

Hi Experts,
ADF: 11.1.1.5.0
WLS: 10.3.6
I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
I am facing the below issues while trying to implement this use case:
1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
To summarize,
1. Please let me know how to expand all master nodes in af:Tree by default.
2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
Thanks in advance,
Rathnam

Hi,
            Can you please elaborate the solution? I have a similar problem in
https://forums.oracle.com/thread/2579664

Similar Messages

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • Help with the check box.

    Hi,
    I have a question with the Checkbox. I am using Apex 4.0.
    I have 5 checkboxes and using the Lovs I have given values to each check box.
    When I select the checkboxes and submit, the values are inserted into a single column.
    Example
    Consider CB as check box
    CB1 1
    CB2 2
    CB3 3
    CB4 4
    CB5 5
    When I Select CB1, CB4, CB5 In database it stores as 1:4:5 But, I need it to be stored as 10045 format. Like if I select CB2,3 5 then it should be stored as 02305
    The return value of the checkbox should be displayed along with the other unselected values as 0s as told in the above format.
    Can anyone help me with this.
    Thanks,
    Rik

    If you want to show the value on screen(can't set it to the same checkbox item)
    checkbox_item_name = 'P133_CHECK';  //checkbox item name
    checkbox_value_item_name = 'P133_CHECKBOX_VALUE'; // Item which has the checkbox value concatenated 0 for not checked and checkbox value when checked
    $('#'+checkbox_item_name).find('input[type=checkbox]').click( function(){
      var val = '';
      $('#'+checkbox_item_name).find('input[type=checkbox]').each( function(){
        if ( $(this).is(':checked') ){ val+= $(this).val(); }
        else { val+=0; }
      $s(checkbox_value_item_name,val);
    If you want to just use the value in PLSQL, it is much more simpler
    Create a Dynamic Action that is triggered "*before page submit*"
    Execute JS code
    checkbox_item_name = 'P100_CHECK';  //checkbox item name, change it appropriately
    var val = '';
    $('#'+checkbox_item_name).find('input[type=checkbox]').each( function(){
      if ( $(this).is(':checked') ){ val+= $(this).val(); }
      else { val+=0; }
    $s(checkbox_item_name,val);Now when the checkbox submits, the checkbox item would have the concatenated value as required.

  • Programatically creating ADF Tree with nodes,child nodes & links?

    Hi,
    Currently I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Please provide me detailed code for programatically creating ADF Tree with nodes, child nodes and links in it.
    Thanks,
    Vik

    You need to create a model for the tree. ADF has a build in model that you can use to build your own tree.
    This is what you need to write in your JSPX:
    <af:tree summary="Navigation" id="treeNav" value="#{pageFlowScope.treeNavigationBackingBean.model}"
               var="node" contextMenuSelect="true" rowSelection="single" fetchSize="30">   
           <f:facet name="nodeStamp">
          <af:outputText id="txtText" value="#{node.text}"/>
        </f:facet>
    </af:tree>This is the code to retreive the model:
      public TreeModel getModel() {
        if(model == null)
            model = new ChildPropertyTreeModel(instance,"children");
        return model;
      }instance contains the actual tree. I build it in the constructor of my managed bean:
        public BeanTreeNavigation() {
          ArrayList<TreeItem> rootItems = new ArrayList<TreeItem>();
          TreeItem node1 = new TreeItem("Root node");
             ArrayList<TreeItem> level1 = new ArrayList<TreeItem>();
             TreeItem level1Node1 = new TreeItem("Level1 Node1");
              level1.add(level1Node1);
           node1.setChildren(level1);
           rootItems.setChildren(node1); 
          this.setListInstance(rootItems);
          root = rootItems;
      public void setListInstance(List instance) {
        this.instance = instance;
        model = null;
      }The TreeItem class is not a default one. I created it myself. You can make of it whatever you want:
        public class TreeItem {
          private String text;
           private List<TreeItem> children = null;
           public TreeItem(String text){
            this.text = text;
            public void setText(String text) {
                this.text = text;
            public String getText() {
                return text;
            public void setChildren(List<TreeItem> children) {
                this.children = children;
            public List<TreeItem> getChildren() {
                return children;
            }I wrote the TreeItem as an inner class of the managed bean.
    The most important part is the getModel methode. There you need to specify an Object and the name of the getter that will return a List of the children.
    Hope this helps.
    Edited by: Yannick Ongena on Feb 22, 2011 7:30 AM

  • Can a check-box be used to select more than one value

    Hi, I have a form with a check-box that only allows one selection at a time. I have a requirement now to allow the user to select multiple selections. How can I accomplish this with a checkbox? Please help.

    Then i didn't get your actual form-design.
    Well there are 14 items displayed for each 14 denial reasonSo you have 14 items where each is for one denial reason, or 14 items where each has 4 denial reasons (14x14)?
    They are all 'grouped' as one check_box item in the blockWhat does that mean. For the 14 items there is one checkbox? And what is the meaning if you check it?, and what if you uncheck it?
    so I don't quite know how to be able to check 2 or more reason per recordAs far as i understand you, you would have to have 14 checkboxes, one for each reason, which can be individually checked/unchecked.

  • Putting a check box above column for selection in WD ALV

    Hi,
    Can anyone provide me a code snippet and help me how I can
    provide a check box above column for selection in WD ALV.
    Best Regards
    Sid

    Hi Sid,
    As far as I know we cannot put checkboxes directly above the Column headers.
    You can achieve this functionality in a round above method
    You can create a group of checkboxes above your ALV table with names of  columns to be selected beside each check box and proceed with your further processing.
    Also If you are just looking at which columns you need to select to be shown on the
    ALV output
    data: lr_standard_functions type ref to if_salv_wd_std_functions.
    lr_standard_functions ?= wd_this->r_table.
    lr_standard_functions->set_column_selection_allowed( ' ' ).
    Hope this is of some help.
    Regards,
    Ismail.
    Edited by: Ismail Basha on Jan 23, 2008 1:47 PM
    Edited by: Ismail Basha on Jan 24, 2008 3:23 AM

  • Check box as a non database item

    Hi.,
    I am using jdev 11.1.5
    My scenario:
    I need to use checkbox in my af:table which is a non database item
    if i check that check box i need to select the current row in that table
    ex:
    yr        period     type
    2010    2            AJ    [checkbox]
    2010    3            AJ    [checkbox]If I check the 2nd period check box then the value of
    Row row= vo.getcrrent();
    row.getAttribute("period");  //   this value must be 2
    check box must be a non-database item
    how can i do this

    is this what you want?
    Row row= vo.getcrrent();
    row.getAttribute("period");  //   this value must be 2
    int index =vo.getRangeIndexOf(row); //Get the index of the given row relative to the beginning of the range. http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e10653/oracle/jbo/RowIterator.html#getRangeIndexOf%28oracle.jbo.Row%29

  • HT1414 I have lost one app last used months ago, Regularly Synced with I tunes. How to find without upsetting everything else ?

    I have lost one app last used months ago, Regularly Synced with I tunes. How to find without upsetting everything else ?

    Thanks, but I hoped to retrieve Saved information saved in the lost app rather than start afresh with a new download from apple
    The app was for aniverseries, birthdays  and service reminders  etc which I had already entered.
    I have Synced and backed up on my MacBook regularly, but other than a complete restore of my system, I do not know how to find and cherry pick individual apps, or even if it is possible to do such a thing.
    After all this time I am not even sure of the original name of the lost app.
    this sounds  a bit fable !  (and the spell check on this is not good either, not very good suggestions !)

  • Check box in SAP Query selection screen

    I want to keep 2 check box in SAP Query selection screen.
    could you please tell me any one.
    regards,
    kumar

    Hi Vijay,
    If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
    You can find the name of the generated program of the query when you execute the query.
    Reward points if useful.
    Regards,
    Atish

  • Where is With Time Capture box in the Find panel?

    I need to find some photos by using capture dates. I know that I have to select With Capture Date in the Find panel of the Library module, but I can't find it... Does the Find panel is really what appears when you do "cmd + F"?
    Thank you!

    You can use the library filter (there's a capture time column) or create a
    smart collection using the capture time as a criteria.
    2012/11/19 kimcirque2012 <[email protected]>
       Re: Where is With Time Capture box in the Find panel?
    created by kimcirque2012 <http://forums.adobe.com/people/kimcirque2012>in
    Photoshop Lightroom - View the full discussion<http://forums.adobe.com/message/4859384#4859384

  • How to find open item in bsik table

    anyone can tell me how to find open items for vendor in bsik table or it will store only open item.
    i debug the tcode fbl1n to see . but not able to find
    Kumar

    Hi
    There is no specific field name for open item in the table BSIK.Yes BSIK include a structure named ABSIK_PSO and which is a "IS-PS: Data appendix of open items vendors".
    Yes there is a field name
    BUZEI - Line Item
    EBELP - Item
    You check with your requirement again and try to use these fields,if you still facing some probs than write back to me,i will try to give the appropriate solutions.
    Thanks
    Mrutyunjaya Tripathy

  • Could not find selected item matching value "New" warning message in ADF

    Hi,
    I have a selectOneChoice1 for a field which has the following fixed values in it. And while creating it, I selected the 'SelctionRequired' option so that this field will always have a value.
    New
    Pending
    Completed.
    While navigating to this page, I am trying to set the value to 'New' (Retrieved from the DB) in the backing bean. But when the page is rendered, the above field is empty with the above options in the list and jdev has the follwing error message in its log.
    WARNING: Could not find selected item matching value "New" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=selectOneChoice1]
    Can any one help me with this issue?
    Thanks,
    Priya

    The value of a list binding is the zero-based integer position in the list that is selected, not the actual underlying value.
    The simplest way to set the value of an attribute is to use an attribute binding (which can be bound to the same attribute as the list binding). When you set the value of an attribute binding, it sets the value as you supply it. Otherwise, you'd need to set the list binding's value to the numerical "slot" number of the one you want to change the value to.

  • How to find top items in alv similar to MC.5

    hi abapers
    can u plz tell me how to find top items in alv grid program as we find similarly in MC.5 top material...etc as top items.
    Thanks in advance

    Nagrenda -> http://sap.ittoolbox.com/groups/technical-functional/sap-abap/how-to-display-an-alv-grid-using-abap-oo-2016165
    I suggest you read the rules of this forum.

  • How to limit OK with a check box

    I am new to JavaScript.  I have search the web.  I have been working on this box for 3 days.  I have slapped various code from example to get it this far but I cant seem to accomplish my needed last step. 
    I need the Check box to also limit the OK button.  AKA "Confirm"  Whether I need a second alert or some other step I am unsure but basically if they don't check the box the only option I want available to them is the cancel button.  Please Help.  Also if you see anything that suggest a novice mistake please point it out.
    var meth0d = {
            initialize: function(dialog) {    // Set a default value for radio button field
                dialog.load({"rd01": true });
                this.hasPick = false;    // Disable radio button field
                dialog.enable({   
                    "rd01" : this.hasPick,
                    "rd02" : this.hasPick,
                    "rd03" : this.hasPick });
            commit:function (dialog) { // called when OK pressed
                    var results = dialog.store();
                        if (results["rd01"]) meth0d = "Rolled";
                    else if (results["rd02"]) meth0d = "Points";
                    else if (results["rd03"]) meth0d = "Manual";
            ckbx: function (dialog) {  // Process the checkbox, Verify method
                this.hasPick = !this.hasPick;
                dialog.enable({
                    "rd01" : this.hasPick,
                    "rd02" : this.hasPick,
                    "rd03" : this.hasPick });
            description:
                name: "Ability Stat Method",
                elements:
                        type: "view",
                        align_children: "align_left",
                        elements:
                                type: "static_text",
                                name: "This form has three methods of determining Ability Stat Rolls. \n\n Roll = A computer generated random roll in accordance with the PHB. \n Points = A non-random method that provides balance between players.\n Manual = Allows you to type in any number between 3 to 18  \n\n Note: The Roll Method tracks how many times the form has been opened or\n reset each day and how many reroll attempts the player has made.", 
                                bold: true,
                                font: "dialog",
                                char_width: 30,
                                height: 140
                                type: "check_box",
                                item_id: "ckbx",
                                name: "I understand."
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "Methods: "
                                        type: "radio",
                                        item_id: "rd01",
                                        group_id: "rado",
                                        name: "Rolled"
                                        type: "radio",
                                        item_id: "rd02",
                                        group_id: "rado",
                                        name: "Points",
                                        type: "radio",
                                        item_id: "rd03",
                                        group_id: "rado",
                                        name: "Manual",
                        type: "gap",    //Add a small vertical gap between
                        height: 10      //..radio fields and buttons
                        type: "static_text",
                        name: "Note: Once you click confirm you will have to reset the form to access this menu again.", 
                        bold: false,
                        font: "dialog",
                        char_width: 30,
                        height: 20
                        type: "ok_cancel",
                        ok_name: "Confirm",
                        cancel_name: "Cancel",
    var retn = app.execDialog(meth0d);

    You need to use the validate function of the Dialog object. It returns a boolean (true/false) that specifies whether the dialog needs to be closed or not (the user can still cancel out of the dialog, of course). So in your case it will be something like this:
    validate: function (dialog) {
        var results = dialog.store();
        if (!results["ckbx"]) {
            app.alert("You must tick the \"I Understand\" box.");
            return false;
        return true;

  • How can I use if with a check box to perform a formula?

    I would like to have a column with a cheek box which, if ticked, performs a formula in the next column. Would anyone know how to do this?

    Is this what you mean?
    B1=IF(A1=TRUE, C1+D1, "")
    this is shorthand for select cell B1, then type (or copy and paste from here) he formula:
    =IF(A1=TRUE, C1+D1, "")
    Check box not checked:
    Check box checked:
    when the checkbox is checked cell B1 will contain the sum of cells C1 and D1 otherwise cell B1 is empty

Maybe you are looking for

  • Hiding  a Equipment  view  in a  transaction iq01

    Hai Friends,              How to hide a Equipment view in a transation for create material serial number (iq01). Regards, Sathis Kumar R

  • Can not send email from this house

    I cannot send an email from any computer, laptop or phone (connected via wifi) from this house. However, if I take the laptop or phone to another place I can send with no problem. Oh, I can receive just fine. Here's the problem. I am not using Verizo

  • Spatial query using C#

    hi, we're getting some odd behaviour using the Oracle Data Provider for .Net. spatial queries return no data unless the indexes on the queried table are rebuilt, the query returns data when executed using sql*plus. we're coding in C#, the database ve

  • IPhone 4s can't activate after restore

    I have an iPhone 4s. The software started acting a little buggy so I opted to do a system restore. After I did, I can't activate my phone. I don't have service with a carrier and use the phone primarily on wifi, and I need to get it working ASAP.

  • Tab Component Not Updating (Bug?)

    Wow. Just discovered the forums today and already making the most of them! Anyways, I've come across another problem possibly a bug. I have a parent component that makes a call to a server side component. On completion it dispatches a custom event. I