List tree

Hi all,
I am using the cl_gui_list_tree. In tree display I managed all the nodes are with checkboxes. As usual this tree has the hierarchy. Now If checked the root node, then how can check all the lower level nodes of the root.
Thanks and Regards,
Balakrishna.N

hi,
use this method :
CL_TREE_CONTROL_BASR=>NODE_SEL_MODE_MULTIPLE
I have used in GRID layout. not sure about List display.
ags.

Similar Messages

  • How to display records of int. table in list tree?

    friends,
       i want to display a list tree using fm RS_TREE_CONSTRUCT and RS_LIST_DISPLAY.
    this is the data that i have to display
    Matnr      doc no.        Stock qty.     Age
    1     45601236           100          55
    1     45601237           10          54
    1     45601238        11          53
    1     45601239           101          52
    now, only the first record should be displayed with a + symbol... when the user clicks the + symbol, then the node has to expand and display the other 3 records pertaining to that material...how to display 4 fields of an internal table in one line and like that, 3 records...i have seen some threads relating to this, but they all display only one value in the child node..how to  display multiple fields like this?
    please address this functinality using FMs alone, as i am not exposed to objects :!
    thanks all
    Sathish. R

    satish,
    Before passing the Node name ,Concatenate all the values of record in one string and pass that string as node name.Now it will work.
    To develop the basic logic  simple program name is :
    "SAPSIMPLE_TREE_CONTROL_DEMO"  In this program use above logic.
    Don't forget to reward if useful.
    Don't forget to reward if useful

  • Abap Objects generating List Trees and Grids

    Hi Friends,
      Please provide me the Information for how to work with ABAP OBJECTS creating(and manipulating)the combination of List Trees and Grids.
    Regards,
    Sowjanya

    There are a couple of examples programs,  You can start by checking out transaction DWDM for some of the basic ABAP oo controls.  You can also check out any program which begins with BCALV* for examlple of ALV grids, trees, and lists.
    REgards,
    Rich Heilman

  • Accordion/List Tree + Checkboxes

    Hi All,
    I'm new to flex and I can't seem to find any thing on how to
    create the following any help would be appreciated.
    I want to create an accordion or a List tree for selecting
    muliple items by using a checkbox.
    Example:
    [Check box] Accordion Header1
    [Check box] Accordion Child 1
    [Check box] Accordion Child 2
    [Check box] Accordion Header 2
    [Check box] Accordion Child 1
    [Check box] Accordion Child 2
    I want the user to be able to select an entire group or
    specific item with in, I’m not sure if this makes any sense
    let me know
    Thanks

    hi,
    use this method :
    CL_TREE_CONTROL_BASR=>NODE_SEL_MODE_MULTIPLE
    I have used in GRID layout. not sure about List display.
    ags.

  • List tree report display

    Hi all,
               Can anyone send me some material to read list tree display
    without using OOPS.
    plz send fast its urgent.

    Hi..
    Refer this link..
    A Binary Tree Implementation in ABAP
    sample code:
    http://www.erpgenie.com/abaptips/content/view/500/62/
    Reward point if useful.
    Regards,
    K.Tharani.
    Edited by: tharani kanagarajan on Feb 19, 2008 8:46 AM

  • No list tree of device and interface, software in MAX sytem. using pci 6034E and chasis 2345

    Hye, i got the problem about this device.
    I using PCI 6034 E which will connect to SCC 2345 to measure current and voltage.
    My os is 32 bit Windows XP.
    First i install this software, my MAX listed the tree of devices & interface which is PCI 6034 E and chasis 2345, and all download software are listed in tree of software.
    By the way, when i start to measure the current, my MAX is working fine.. but, the problem is starting in the next day, wheni try to measure againt, all the list are dissapear. Then i uninstall all the NI component and reinstall again. Thereare a lot of install and reinstall again and again.. By the way the result is still same. Do not have any tree appear..
    so, any colution for my problem?
    i try to solve this problem, and i read that when the tree of devices and interfaces not appear, it's maybe because we using driver : NI 488.2 , i try to uninstall this driver.. by the way the result is still same...

    sahizansalman,
    It looks like the same is happening with the Software list. This is often a sign of a MAX database corruption. I'd try the steps outlined in this knowledgebase: 
    What is the Process For Removing MAX Database Corruption?
    Feel free to post back if this does not work. 
    By the way, do you know what device is showing up as unknown in the device manager? You did not mention anything besides your PCI DAQ card and SCC 2345, which are showing up fine. 
    Message Edited by mishkin on 03-11-2010 07:42 AM
    Misha

  • Category List/Tree View Sort Order

    What determines the sort order for the folders in the Category/Tree view Lists?
    I have two machines both at SP1 FP3, one displays Favorites and then Add-Ons, the other displays Favorites and then Charts, with Add-Ons coming at the bottom of the list.
    Any ideas, another registry fix?
    Thanks
    Charles

    Hi pianoboyCoder,
    You could loop the treeNodes in the treeView. then move the Node whose text begin with "Red" to bottom.
    I wrote a test program for you. you could refer to .
    int upper = this.treeView1.Nodes.Count;
    TreeNode Temp;
    for (int Outer = upper-1; Outer >= 1; Outer--)
    for (int Inner = 0; Inner <= Outer-1; Inner++)
    if (treeView1.Nodes[Inner].Text.StartsWith("Red"))
    Temp = treeView1.Nodes[Inner];
    treeView1.Nodes[Inner] = treeView1.Nodes[Inner + 1];
    treeView1.Nodes[Inner + 1] = Temp;
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Folder list - tree view

    I'm trying to build a tree view of an account's folders but I keep
    running into a problem no matter which approach I take. In the code
    snippet below I'm using the PopulateTree method recursively to add
    nodes to the tree view. This works using the .NET GW API but when I
    use SOAP it seems that I get my root folder, my Mailbox (which is
    immediately below my root folder) but when the function recurses
    against what should be a different list of (sub-) folders I end up
    with the root and Mailbox folders in the next call to PopulateTree.
    I've also tried doing the first level inline with the initializing
    code, calling PopulateTree against each of the folders in the first
    level as the parent folders but I still seem to only get the root
    folder and Mailbox again within the foreach loop of the PopulateTree
    method. Otherwise, I can list all the folders in a text string if I
    ask for a recursive listing.
    treeFolders.Nodes.Clear();
    PopulateTree(treeFolders.Nodes[0], "Folders");
    private int PopulateTree(TreeNode parentNode,
    string parentFolderID)
    WR.getFolderListRequest flreq =
    new WR.getFolderListRequest();
    flreq.recurse = false;
    flreq.parent = parentFolderID;
    WR.getFolderListResponse flres =
    ws.getFolderListRequest(flreq);
    if (flres.status.code != 0) return flres.status.code;
    TreeNode localNode;
    int folderCount = flres.folders.Length;
    foreach (WR.Folder folder in flres.folders)
    localNode = parentNode.Nodes.Add(folder.name);
    PopulateTree(localNode, folder.id);
    localNode = null;
    return 0;

    Right call it once recursive, and then cache in Map or similar structure.
    On 12/20/2012 5:58 AM, Preston Stephenson wrote:
    > There are issues with certain folders. You really should only call
    > getFolderListRequest the one time doing recurse true. You should
    > cache the results. You can build u a tree view with the results.
    > At least that is what I do.
    >
    > Preston
    >
    >>>> On Wednesday, December 19, 2012 at 8:48 AM, Lilith<[email protected]>
    > wrote:
    >> I'm trying to build a tree view of an account's folders but I keep
    >> running into a problem no matter which approach I take. In the code
    >> snippet below I'm using the PopulateTree method recursively to add
    >> nodes to the tree view. This works using the .NET GW API but when I
    >> use SOAP it seems that I get my root folder, my Mailbox (which is
    >> immediately below my root folder) but when the function recurses
    >> against what should be a different list of (sub‑) folders I end up
    >> with the root and Mailbox folders in the next call to PopulateTree.
    >>
    >> I've also tried doing the first level inline with the initializing
    >> code, calling PopulateTree against each of the folders in the first
    >> level as the parent folders but I still seem to only get the root
    >> folder and Mailbox again within the foreach loop of the PopulateTree
    >> method. Otherwise, I can list all the folders in a text string if I
    >> ask for a recursive listing.
    >>
    >> treeFolders.Nodes.Clear();
    >> PopulateTree(treeFolders.Nodes[0], "Folders");
    >>
    >> private int PopulateTree(TreeNode parentNode,
    >> string parentFolderID)
    >> {
    >> WR.getFolderListRequest flreq =
    >> new WR.getFolderListRequest();
    >> flreq.recurse = false;
    >> flreq.parent = parentFolderID;
    >>
    >> WR.getFolderListResponse flres =
    >> ws.getFolderListRequest(flreq);
    >>
    >> if (flres.status.code != 0) return flres.status.code;
    >>
    >> TreeNode localNode;
    >> int folderCount = flres.folders.Length;
    >> foreach (WR.Folder folder in flres.folders)
    >> {
    >> localNode = parentNode.Nodes.Add(folder.name);
    >> PopulateTree(localNode, folder.id);
    >> }
    >> localNode = null;
    >>
    >> return 0;
    >> }

  • How to avoid login page in List Tree

    Hi group,
    I am new to APEX and I have added a tree list to my application.
    The problem is when I click into the link of the tree list, it always redirects me to the login page.
    Is any setting that I am missing?
    This tree list was created into the page "0".
    Thanks in advance.
    Kind regards,
    Francisco

    Hi
    jyothi
    thanks for the response
    i was following yours thread of Tree the same problem is thr in my tree its also nt retaining the current possition after collapsing it and this is my code can you please help me in this and i have try your javascript also but were to put it i m not getting the solution was gien to u by andyand vee, please please help me
    this my code
    select
      case
        when connect_by_isleaf = 1 then
          0
        when level = 1 then
          1
        else
          -1
      end as status,
      level,
      case
        when PAGE_NUMBER is null then
          MENU_ITEM_NAME
        else
          MENU_ITEM_NAME || ' (' || PAGE_NUMBER || ')'
      end as title,
      null as icon,
      MENU_ITEM_ID as value,
      null as tooltip,
      case
        when PAGE_NUMBER IS NULL then
          NULL
        else
         'f?p=&APP_ID.:' || PAGE_NUMBER || ':&APP_SESSION.'
      end as link
    from   #OWNER#.D_MENU_ITEM
    start with IS_ROOT = 'Y'
    connect by prior MENU_ITEM_ID = PARENT_ITEM_ID
    order siblings by SEQUENCE_NUMBEREdited by: shadab550 on Mar 15, 2012 10:09 AM

  • Styling of FIRST List/Tree Item

    Has anyone been able to set the style of the first item in a
    List and/or a Tree to something different than the rest of the
    items in that object?? HELP!!

    Finally got time to figure this out...here ya go if anyone
    else needs it:
    package{
    import mx.controls.listClasses.ListItemRenderer;
    public class FirstItemRenderer extends ListItemRenderer
    public function FirstItemRenderer()
    super();
    override public function set data(value:Object):void {
    super.data = value;
    switch(super.listData.rowIndex) {
    case 0:
    this.setStyle("fontWeight","bold");
    break;
    default:
    this.setStyle("fontWeight","normal");
    }

  • A Binary Tree Implementation in ABAP

    Hi,
    Can any one explaine me how to create a binary tree of random numbers with dynamic objects.
    Thanks,
    Manjula.

    Hi manjula,
    This sample code uses dynamic objects to create a binary tree of random numbers as per your requirement ...pls go through It. 
    It stores numbers on the left node or right node depending on the value comparison with the current value. There are two recursive subrotines used for the building of the tree and printing  through the tree.
    For comparison purpose, the same random numbers are stored and sorted in an internal table and printed.
    *& Report YBINTREE - Build/Print Binary Tree of numbers *
    report ybintree .
    types: begin of stree,
    value type i,
    left type ref to data,
    right type ref to data,
    end of stree.
    data: tree type stree.
    data: int type i.
    data: begin of rnd occurs 0,
    num type i,
    end of rnd.
    start-of-selection.
    do 100 times.
    generate random number between 0 and 100
    call function 'RANDOM_I4'
    exporting
    rnd_min = 0
    rnd_max = 100
    importing
    rnd_value = int.
    store numbers
    rnd-num = int.
    append rnd.
    build binary tree of random numbers
    perform add_value using tree int.
    enddo.
    stored numbers are sorted for comparison
    sort rnd by num.
    print sorted random numbers
    write: / 'Sorted Numbers'.
    write: / '=============='.
    skip.
    loop at rnd.
    write: rnd-num.
    endloop.
    skip.
    print binary tree. This should give the same result
    as the one listed from the internal table
    write: / 'Binary Tree List'.
    write: / '================'.
    skip.
    perform print_value using tree.
    skip.
    *& Form add_value
    text - Build tree with value provided
    -->TREE text
    -->VAL text
    form add_value using tree type stree val type i.
    field-symbols: <ltree> type any.
    data: work type stree.
    if tree is initial. "When node has no values
    tree-value = val. " assign value
    clear: tree-left, tree-right.
    create data tree-left type stree. "Create an empty node for left
    create data tree-right type stree. "create an empty node for right
    else.
    if val le tree-value. "if number is less than or equal
    assign tree-left->* to <ltree>. "assign the left node to fs
    call add_value recursively with left node
    perform add_value using <ltree> val.
    else. "if number is greater
    assign tree-right->* to <ltree>. "assign the right node to fs
    call add_value recursively with right node
    perform add_value using <ltree> val.
    endif.
    endif.
    endform. "add_value
    *& Form print_value
    text - traverse tree from left-mid-right order
    automatically this will be sorted list
    -->TREE text
    form print_value using tree type stree.
    field-symbols: <ltree> type any.
    if tree is initial. "node is empty
    else. "non-empty node
    assign tree-left->* to <ltree>. "left node
    perform print_value using <ltree>. "print left
    write: tree-value. "print the current value
    assign tree-right->* to <ltree>. "right node
    perform print_value using <ltree>. "print right
    endif.
    endform. "print_value
    pls reward if helps,
    regards.

  • Is it possible to implement or represent a Linked List in LabVIEW?

    Linked lists are a useful way to store and retrieve data and I am wondering if it is possible to create or acheive the same objective of a linked list in LabVIEW.

    A linked list is a collection of nodes, each node has data and a link (or pointer) to the location of the next node.
    In LabVIEW we can create a collection of nodes as an array of clusters. One element of the cluster will be our data, and the other will be an integer pointer to the location in the array, of our next node.
    In, fact you can go crazy and represent a LabVIEW Hierarchy in a similar fasion (a tree structure). Now, each cluster will have data about the VI (its Name, attributes, etc), an array of integers that point the the locations of calling VIs, and an array of integers that point the the locations of subVIs.
    You will, of course also need some tools for sorting your lists/trees and performing useful operations... lot's of fun!
    Good luck
    Jim

  • How to create a dynamic tree report

    hi experts,
           i have a requirement to create a dynamic tree report in OM module.
      this report should show the number of people positions required in a org unit, and also the number of people available in a org unit.
      There is something called as qualification catalog to which qualifications are attached, to these qualifications org units are attached, these org units will have some positions attached to it, and each of this position might have a person attached to it.
    The user will enter the qualification catalog number in the selection screen for which he should be getting the result in a tree format which flows from qualification catalog to qualifications, from qualifications to org units, from orgunits to the total no of positions present in this orgunit and the no of positions occupied in the orgunit.
      This is a challenging job as far as i am concerned.
    Please suggest me a way to approach this,i promise to reward the answers.
    thanks in advance,
      santosh.

    Hi,
    Check the demo tree programs for yuor requirement?
    SAP List Tree:  SAPSIMPLE_TREE_CONTROL_DEMO
    SAP Column Tree : SAPCOLUMN_TREE_CONTROL_DEMO
    SAP Easy Tree : SAPSIMPLE_TREE_CONTROL_DEMO
    Thanks,
    Ramakrishna

  • How to display XML generated dynamically, as TREE in cluster environment

    hai guys,
    we are generating a tree.xml file in server side as follows.
    path = getServletConfig().getServletContext().getRealPath("/QBE/jsp/tree.xml");
    BufferedWriter out1 = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),"UTF8"));
    out1.write(xmlString + "</tree>");
    out1.close();
    "xmlString" holds the data in xml tag format.
    in order to display the xml file in TREE structure, we are using a function like
    function createTree()
         var tree = new WebFXLoadTree("SMQ/AMQ List", "tree.xml");
         document.write(tree);
    ALL THIS MECHANISM IS WORKING FINE IN DEVELOPMENT ENVIRONMENT ANS AS WELL AS WHEN WE DEPLOY THE RELEASE IN LOCAL MACHINE. BUT IT IS NOT WORKING WHEN THE RELEASE IS DEPLOYED IN CLUSTER ENVIRONMENT.
    Please help me out how to solve this...
    thanks in advance,
    Ranga
    Edited by: Ranganatha on Jun 5, 2008 5:18 AM

    Hey if you want any more information regarding this problem, i can provide.

  • How to get my list?

    Hello all,
    I have a question about printing a list on my JSP. I create a list with a tree like view. I have done this and when I do System.out.println() on my class where I run the sql statement, he shows the actual list. But now I most post this throw my servlet on to my JSP. But I can't figure out how this must be done.
    My code for the class is:
      public static List Maaktree(int Parent, int level) {
        Connectie Dbc = Connectie.getInstance();
        List Tree = new LinkedList();
        Mappen mappen = new Mappen();
        ResultSet rs;
        String Query = "select * from Mappen where Parent ='"+Parent+"'";
        rs = Dbc.execQuery(Query);
        try {
          while (rs.next()) {
            System.out.println(level + "|" + rs.getString("Mapnaam"));       
            Tree.add(Maaktree(rs.getInt("Map_id"),(1+level)));
        catch (Exception e) {
          e.printStackTrace();
        return Tree;
      }on my servlet I do the next
    int Parent = 0;
        List Tree = Mapmutaties.Maaktree(Parent, 1);
        request.setAttribute("Tree", Tree);
        RequestDispatcher ReqD = getServletContext().getRequestDispatcher(
            "/Tree.jsp");
        if (ReqD != null)
          ReqD.forward(request, response);And on my JSP I do like this
    <%
      java.util.ListIterator pos = null;
      java.util.LinkedList Tree = (java.util.LinkedList)request.getAttribute("Tree");
      if (Tree != null) pos = Tree.listIterator(0);
    %>
    <html>
    <head>
    <title>
    </title>
    </head>
    <body bgcolor="#ffffff">
    <b>Mapnaam</b>
    <%
    if (pos != null)
      while(pos.hasNext())
        Business.Mappen mappen = (Business.Mappen)pos.next();
       %>
    <%=mappen.getMapnaam()%>
    <%
    %>
    </body>
    </html>But this gives an error. I suspect on the line "Business.Mappen mappen = (Business.Mappen)pos.next();". Because when I remove this line there is no problem. But I can't get the list shown on my JSP.
    Does anyone know how to print the list on my JSP.
    Thanx,
    Henk

    and what is your error exactly? have you got a stack trace?

Maybe you are looking for

  • Can I preset the default save feature in Acrobat 10 to save a MS Word document as a "REDUCED SIZE PDF"?

    I use MS Word for Mac 2011 to create documents and quotations. I'm using Adobe Acrobat Pro 10.1.12 on a MAC. I want to save the MS Word file as a "REDUCED SIZE PDF" first, without having to first save it as a normal PDF, then re-save it as the reduce

  • Is this a bug in NWDS;Quick Par upload

    Hi, I was doing a elearning exercise where i have to modify the localization file and place them into Private/src folders. portal-inf -classes localization.properties localization_de.properties - localization - private classes lib - srclib.api - srcl

  • Changing a document's desktop icon to the cover of the document

    Hey gang, the subject pretty much says it all.  What I mean is, I opened a PDF file, then saved a shortcut to my desktop.  When I did, the shortcut icon was the cover of the document.  Great!  Now it's easier for me to choose which document to read! 

  • Some plz help a poor student

    Hi I'm a student stuck on a really crappy course my teacher has taught me nothing about java and CORBA and given me a coursework on it :( I just want 2 use this program client/server type with CORBA, it checks a users ID and username against those he

  • HP4507 all in one doesn't print

    I bought one of these before and had same problem so I sent it back. I didn't realise I had bought the same model this time. And same problem all the print set up pages and test pages are great. When I try to print from my pc or from online it doesn'