Check Box in Tree (tree multiple selection)

I need to create a 2 level hierarchy tree, where the user is allowed to make multiple selection on leaf node. One way is to use TableTree (TreeByNestingTableColumn), but with this I am unable to get the same look and feel of a simple Tree view.
My questions are:
1. Is there a way to enable multiple selection on a simple Tree?
2. If the answer to question 1 is no, then is there a way to add check boxes to the Tree elements (be it parent or leaf)?
3. Is there anything that can be done to solve this issue without using TableTree?
Thanks in advance.

Hi,
Please go through Multiselection in Tree control thread.
The solution outline is like this:
1. When you click on a leaf, you mark it as selected and you can also store it in the context.
2. Click as many leaves as you like and the onAction will mark each of them as selected.
3. There's no need to do a CTRL+click, only normal clicks.
4. Once done you can find out all the marked leaves.
Regards,
Satyajit.

Similar Messages

  • Check box in Grid for multiple selection

    Hi,
    Right now i am using dynamic code to generate grid for checkboxs(multiple selection) it is working fine but it is taking time to generate grid.Is there any method(MII 12.0 option) to display data along in the gird
    Thanks
    Ramesh

    In MII 12.2 we added the "checkbox" display option/feature for the MII iGrid applet for displaying boolean values using the checkbox icon.  If you want something more robust and interactive the iGrid may not be the best choice and leveraging an XSLT to generate HTML dynamically from your XML data , HTML 5 libraries, or dHTMLx can all be options for supporting more robust UI displays. 
    Perhaps this link will help you along with understanding the XSLT route:
    Interfacing MII and the dHTMLx Editable Grid  The following document will discuss in detail how to create a working interface from the dHTMLx Editable Grid to MII Query Templates. It also includes a sample project with a working example and content to illustrate how this interface can be achieved.
    Sam
    PS: Please remember that the MII UI is intended to be a mash-up design so just about any web technology will work...I say just about because .aspx will not as there isn't a .NET backed for NetWeaver.

  • Check box symbol in Tree control

    Hi,
    I have built a code for using checkbox symbol in tree function and stuck to get the selected check box item. 
    Actually my requirement is to to use tree with check box and do the multiple selection and get the selected item list. I have completed till the Check box selection but not able to get the all selected item list.
    I have attached the code for your reference.
    Please let me know hot to do this, If any one knows .
    Thanks in advance
     

    Sorry I didn't get here sooner, here is some example code I made a while ago that supports listboxes, MCLB, and Tree selections.  It also supports nested levels to the tree, select all or select none, and selecting deselecting parent items, and partial selection of parents if children selection are mixed.  Oh and it supports disabling items so the user can't change the selected state.
    https://decibel.ni.com/content/docs/DOC-42155

  • Check Box in af:tree

    Hi,
    In my project i need to use Check box in <af:tree> so that i can select some tree nodes .Has anyone tried it before?. any pointers regarding this would be helpful for me.
    thanks in advance,
    harsha

    Hi,
    Maybe you need to set a partialTriggers in af:selectBooleanCheckbox, referencing to clear button.
    Anyway, see this Andrejus' article, perhaps you can on it a better way to achieve that: http://andrejusb.blogspot.com.es/2011/12/adf-tree-how-to-autoselectdeselect.html
    AP

  • Oracle ADF - Check box auto refresh on first select.

    Hi,
    I am using ADF application for development. in my project.
    when select Check box for all record selection then all
    Check box auto refresh on first select. and also records get refreshed
    Pls suggest a solution for the same.
    Thanks
    Vinod

    Vinod,
    You need to give more information about your use case and the jdev version you are using.
    You question is not clear to me. Do you want to set an attribute in all rows when you select a "select all" check box?
    What do you mean by "Check box auto refresh on first select"?
    Timo

  • Using check Box in a Tree Region style

    I want to display some data in a hierarchical manner and use a checkbox for the user to select the node for which he wants to see a report.
    I need to fetch the node value where the user has ticked in the check box.
    I went through the documentation but it does not mention about using a checkbox.
    Can any one please let me know if we can use checkbox to tree nodes and to capture the user checked nodes do we have to make the VO based on an EO or even with a read only VO I can know which node the user has selected.
    Regards
    Hawker

    Don't cross post: http://forum.java.sun.com/thread.jspa?threadID=5130358&messageID=9467688#9467688
    Search google:
    http://www.google.com/search?q=jtree+checkbox
    This is one of the examples you can find:
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm

  • Check Box in ALV tree

    Dear Experts,
    Currently a report is being displayed using CL_GUI_ALV_TREE class.
    one of the column is check box and it is editable in the output list.
    The checkbox column is getting displayed and is editable in all the leafs but I can't see the checkbox in the nodes.
    e.g. Node-->Flights  chkbx  date
                Leaf  **       chkbx  date
                Leaf  **       chkbx  date
    Can someone tell what could be the problem?
    Regards
    Message was edited by:
            Mahesh Sahu

    Hi Sravanthi,
    I am able to display the check box in the node and it is editable.
    Now in the following example, customer wants the check box to be displayed before the key node Flights e.i. in the place of $ there has to be a check box which can be editable.
    e.g. Node-->$Flights chkbx date
                  Leaf **       chkbx date
                  Leaf **       chkbx date
    Sravanthi do you have any idea on this. I tried to use change_node and change_item method but could not get the check box in front of the Key 'Flights'

  • Need Check Box Help using Acrobat Multiple Fields

    I am trying to get the check marks on this form to act as individual units that can be tabbed through (going down left column, then to right column). I used the "Place Multiple Fields" command to get all the check boxes in. Now, when I do my preview test run, if one box is checked more than one gets checked off someplace else in the form. I want them each work as their own unit and not be associated wiht the other boxes. Do I have to draw each one of these in individually to get this to work the way I want it to work? I am guessing that can't be true. This is a computer after all.I am betting it is an adjustment I need to make to the "Place Mulitple Field"  command when I put them in???? I know this one will be a simple answer witha simple soultion. I'm tap dancing all around it and just can't get it. The visual shoudl expalin it all. Thank you.
    I check on one box in the left column and it also checks other boxes in the right column or elsewhere.

    You need to give each separate check box a unique name. If check boxes have the same name and export value, they will behave that way. If several check boxes have the same name but unique export values, they will behave as a group, where only one in the group can be selected, very similar to how a radio button group normally would behave.

  • FREE check box in PO should be selected by default for specific material

    Hi All,
    We have a check box  FREE in PO creation - ME21N in the item row  which is selected when ever we want the vendor to supply those items as free.
    - I have a list ot items which are supplied freely by the vendor which I have to mention in the PO. My requirment is when ever the specific material is in the PO the FREE check box should be selected by default. Is it possible?
    Please advice.
    Thanks ,
    Vengal Rao.

    Hi Vengal Rao,
    I don't think there's such flag in the material master. As far as I know any material can be supplied either free or chargeable - the buyer has to choose the applicable option it in each specific PO.
    If however in your business case certain materials shall always be supplied as free, then you can use the BAdI that I mentioned above to analyse which material is being procured and set the FREE flag in the PO accordingly.
    BR
    Raf

  • Check box  in ALV Header for selection

    Hi,
    I'm working on ALV in ABAP web dynpro. We have a requirement to check some rows and based on the selection a FM should be executed.
    I've used checkbox in the column for selection. Is there anyway to use a check box (or any element)  in the column header and use that to select all.
    I checked the ALV column header class documentation but didnt find anything that allows UI elements in header.
    Any workaround to tackle this?
    Thank you,
    Vasu

    Hi Thomas,
    I've already done that (in toolbar).  Checking if there is some hidden option that I missed to do this. Looks like there isn't

  • How to display F4 check list where can be multiple selection ?

    Hi exports,
    Using Function module "HELP_VALUES_GET_WITH_TABLE",  is it possible to list a multiple selection value ?
    Thank you very much.
    Best regards,
    Sap leaner

    Hi
    See this and use
    For F4 Values on Screen:
    PROCESS ON VALUE_REQUEST
    using module call starting with FIELD i.e FIELD field MODULE module
    There are number of function modules that can be used for the purpose, but these
    can fullfill the task easily or combination of them.
    DYNP_VALUE_READ
    F4IF_FIELD_VALUE_REQUEST
    F4IF_INT_TABLE_VALUE_REQUEST
    POPUP_WITH_TABLE_DISPLAY
    DYNP_VALUE_READ
    This function module is used to read values in the screen fields. Use of this
    FM causes forced transfer of data from screen fields to ABAP fields.
    There are 3 exporting parameters
    DYNAME = program name = SY-CPROG
    DYNUMB = Screen number = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    and one importing TABLE parameter
    DYNPFIELDS = Table of TYPE DYNPREAD
    The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
    to this FM and the values read from the screen will be stored in this table.This
    table consists of two fields:
    FIELDNAME : Used to pass the name of screen field for which the value is to
    be read.
    FIELDVALUE : Used to read the value of the field in the screen.
    e.g.
    DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
    SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
    SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
    APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    TABLES
    DYNPFIELDS = SCREEN_VALUES.
    READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
    F4IF_FIELD_VALUE_REQUEST
    This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
    parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    F4IF_INT_TABLE_VALUE_REQUEST
    This FM is used to dsiplay values stored in an internal table as input
    help.This FM is used to program our own custom help if no such input help
    exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
    is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
    If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = field from int table whose value will be returned
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'screen field'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = internal table whose values will be shown.
    RETURN_TAB = internal table of type DDSHRETVAL
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    others = 3.
    POPUP_WITH_TABLE_DISPLAY
    This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
    parameter.The VALUETAB is used to pass the internal table.
    A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL =
    ENDPOS_ROW =
    STARTPOS_COL =
    STARTPOS_ROW =
    TITLETEXT = 'title text'
    IMPORTING
    CHOISE =
    TABLES
    VALUETAB =
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    e.g.
    DATA: w_choice TYPE SY-TABIX.
    DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
    values TYPE I,
    END OF i_values.
    PARAMETRS : id TYPE I.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
    i_values-values = '0001'.
    APPEND i_values.
    i_values-values = '0002'.
    APPEND i_values.
    i_values-values = '0003'.
    APPEND i_values.
    i_values-values = '0004'.
    APPEND i_values.
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL = 40
    ENDPOS_ROW = 12
    STARTPOS_COL = 20
    STARTPOS_ROW = 5
    TITLETEXT = 'Select an ID'
    IMPORTING
    CHOISE = w_choice
    TABLES
    VALUETAB = i_values
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    CHECK w_choice > 0.
    READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
    ...in the structure i_values.
    Other FM that may be used to provide input help is HELP_START .
    Reward points if useful
    Regards
    Anji

  • BW Tree Hierarchy-multiple selection for query possible?

    Hello,
    I have a question in regards to BW Tree Hierarchies and its usage in Bex Reporting:
    Is it possible to select multible Tree Hierarchy (based on the same characteristic) when executing a query in Bex Analyzer. If yes, how?
    I tried to configure this by making use of a hierarchy variable on the characteristics, but it does only allow me to select one hierarchy.
    Thanks for your help,
    Elisabeth

    Elisabeth,
    Your query can only assign one hierarchy per characteristic.
    If you need multiple ones - I'd suggest you make a query per hierarchy and you can user Query Views in the WAD to let the user select the View (i.e.. the Hierarchy) they wise.
    Regards
    Gill

  • Check box in Tree ui element.

    Hi All
    I am using org.eclipse.swt.widgets.TreeItem for creating tree structure. Now I am trying to incorporate check box for last tree element. For example if I am preparing tree structure for files the check box should appear only for text file not for directory. User would select the file by checking the box. Here is my code..
    for (int i = 0; i < files.length; i++) {
    TreeItem item2 = new TreeItem(item1, 0);
    item2.setText(files.getName());
    item2.setData(files[i]);
    if (!files[i].isDirectory())
    //here i have to do some thing so that i can select the file in check box
    if (files[i].isDirectory()) {
    new TreeItem(item2, 0);
    I cant use java script here. So pls help me out without using js.
    Thanks a lot.
    Sunit

    in oninputprocessing use the following code to read all the form field values
    data: fields type tihttpnvp,
            field  type ihttpnvp.
    call method request->get_form_fields
      changing
        fields = fields.

  • How to create a tree structure with check boxs using Windows Activex Control?

    Hi,
    I am very new to LabVIEW. I am trying to create a tree structure with Check Boxes like the below. It would be great if someone would show me a right direction to go forward.
    The aim is to select the item and one by one i have to get the Path and give as an input to by application VI.
    Thanks and Best Regards
    Prathap

    Hi Andy,
    Sorry i pasted the Picture.. Pls find the attached picture.
    Following are my requirement:
    1) I need to populate a tree given a root directory, listing all the Folders and file of cetain pattern(*.pjt... ther will be only one *.pjt in every subfolders).
    2) I need a check box for every *.pjt to select the its path. The list of pjt files selected are used for my automation test suit.
    Pls let me know if you need more info.
    Best Regards
    Prathap
    Attachments:
    tree.JPG ‏73 KB

  • 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.

Maybe you are looking for