How to give labels to all the nodes of a tree

I have an application in which I have written FTREE for a table ( Table A ) on a "col1" column which is of type NUMBER.
I have used direct query to show & create the hierarchy tree based on table A.
The query is like this:
SELECT 1,level,to_char(col1),null, to_char(col1)
from A,
start with col1= somevalue
connect by prior col1= parent_column
Another table ( Table B )has a description for the column "col1" in table A.
I would like to show the description from table B on the nodes instead of the number being shown from table A.
Any clues how I can do it. Using simple join in the above query is not possible.
Thanks
rg
null

I have an application in which I have written FTREE for a table ( Table A ) on a "col1" column which is of type NUMBER.
I have used direct query to show & create the hierarchy tree based on table A.
The query is like this:
SELECT 1,level,to_char(col1),null, to_char(col1)
from A,
start with col1= somevalue
connect by prior col1= parent_column
Another table ( Table B )has a description for the column "col1" in table A.
I would like to show the description from table B on the nodes instead of the number being shown from table A.
Any clues how I can do it. Using simple join in the above query is not possible.
Thanks
rg
null

Similar Messages

  • How to expand all the nodes in a tree while loading the tree initially

    Hi All
    Now i am able to display the tree strucute in webdynpro.
    but it is displaying the tree initially in collapsed mode until/unless we click on the node root it will be expanded.
    but my requirement is i wanted to display the tree in expanded mode by default at runtime initially.
    can you please provide any setting to be done or any sample code on the same then it would be great help to me.??
    Thanks
    Trisha

    Hi,
    isLeaf is an attribute you need to create under "CatalogEntries" node. And "isRoot" is not requried.
    Download the sample project "TutWD_TreeByNestingTableColumn". See the below link to dnld this project.
    https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/503f22f6-b978-2a10-bf97-ddc21267e752 [original link is broken]
    Do the changes in sample project as below:
    Invoke this method in the init method as below (as it is in the same project).
    addCatalogEntries(wdContext.nodeCatalogEntries(), "ROOT");
    Change the code in addCatalogEntries() method as below.
    Here we are calling the addCatalogEntries() method recursively for all the parent elements and we are changing the  setExpanded property to true.
    public void addCatalogEntries( com.sap.tut.wd.treetable.wdp.IPrivateTreeTableView.ICatalogEntriesNode node, java.lang.String parentId )
    //@@begin addCatalogEntries()
    IPrivateTreeTableView.ICatalogEntriesElement newCatalogEntriesElement;
    for (int i = 0; i < Catalog.getLength(); i++) {
    if (parentId.equals(Catalog.getParentId(i))) {
    // create new context node element
    newCatalogEntriesElement = node.createCatalogEntriesElement();
    node.addElement(newCatalogEntriesElement);
    // provide node elements with data
    newCatalogEntriesElement.setID(Catalog.getCATALOGID(i));
    newCatalogEntriesElement.setTITLE(Catalog.getTITLE(i));
    newCatalogEntriesElement.setDESCRIPTION(Catalog.getDESCRIPTION(i));
    newCatalogEntriesElement.setAMOUNT(Catalog.getAMOUNT(i));
    if ("ARTICLE".equals(Catalog.getCATALOGTYPE(i))) {
    // checkbox is visible by default
    newCatalogEntriesElement.setPUBLISHED(Catalog.getPUBLISHED(i));
    // third level is last level
    newCatalogEntriesElement.setIsLeaf(true);
    } else {
    // a CATEGORY does not use the checkbox column
    newCatalogEntriesElement.setUsageOfPublishedAttribute(WDVisibility.BLANK);
    newCatalogEntriesElement.setIsLeaf(false);
    newCatalogEntriesElement.setChildrenLoaded(true);
    newCatalogEntriesElement.setExpanded(true);
    addCatalogEntries(newCatalogEntriesElement.nodeChildCatalogEntries(),newCatalogEntriesElement.getID());

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • Account Hierarchy : Function Module to get all the nodes of a hierarchy

    Hi Experts,
    Is there a function module which will give as output all the Node GUIDs for a particular account hierarchy in SAP CRM,when the Node GUID of any single node in the same tree is given as input?
    Best Regards,
    Ashish Dhagat

    Thanks mate.
    Edited by: pankaj kandhare on Aug 14, 2011 7:56 AM

  • Iphone 5 app store search gives blank result all the time, please advise how to solve?

    iphone 5 search in app store always gives blank result all the time, please advise how to solve? It worked several times when I first used the phone from unboxed, but since then, it never work again. Could you please advise how to fix? Thanks

    Try reseting (not just turning off) your phone: hold down the Home button and the Power button on the top until the Silver Apple appears (ignore the red slider if it appears). See if the reset clears things up!
    Cheers,
    GB

  • How do i expand all the nodes in a jtree

    Hi,
    I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
    I would be very greatful if someone could point me in the right direction
    cheers
    Mary

    you could use the following method that expands nodes recursively
    expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
    public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
        tree.expandPath( path );
        int i = node.getChildCount( );
        for ( int j = 0; j< i; j++ ) {
            TreeNode child = node.getChildAt( j );
            expandNode( tree, child , path.pathByAddingChild( child ) );
    }

  • To display all the Nodes in a Binary Search Trees

    Hi,
    I want to traverse through all the nodes in a binary tree. I know that there are traversals like Preorder,Postorder,Inorder. But I am not able to write a recursive code for performing this operation. Can anyone please help me or give me an idea how to write a code to do any one of these traversal.
    Thanks a lot in advance.

    Hi,
    hmm .. how is a tree-node defined? - As so you have not posted a node-class, I will help you by demonstrating it for inOrder by normal language:
    The Idea is as follows:
    You have a root, that references to a tree-node. This tree-node has a value and 2 references to other tree-nodes, let's say they are named left and right. Because left an right are references to tree-nodes in the same way root is a reference to the tree-node, this fact can be used for recursive action on the tree.
    if you like to display all values in the tree, what do you have to do in a node?
    1. display the tree the left reference is pointing to
    2. display the value-Field
    3. display the tree the right reference is pointing to
    that is inOrder, assuming all lesser values are in the left tree and all greater are in the right tree.
    How to display the left and right trees?
    The same way you display this node, but this time you use the left / right reference as the node.
    So do it in pseudo-coding:
    void DisplayTree(NodeClass aNode) {
    if (aNode == null) return;
    DisplayTree(aNode.left);
    DisplayValue(aNode.value);
    DisplayTree(aNode.right);
    That is it - figure it out and try to write a program after this - good luck. To write one for pre-order and post-order should be easy if you have this one for inOrder.
    greetings Marsian

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Binding with all the nodes to the table

    Hi,
    I have requirement like this,
    I have table in which data is displayed using BAPI.
    In my BAPI , there are four tables.
    My criteria is to bind the values to the table from the four nodes which is mapped from BAPI.
    But I can't able to bind the value form all the nodes, it allowing me to only bind form one node.
    Please help me with the procedure to bind the values to the table from all the nodes in the context.
    Thanks,
    Anitha

    Hi Anita,
    I had a similar requirement and resolved my problem by following the below procedure. Try this, it might help you.
    I have got 3 Nodes coming from a BAPI
    Model Node Root--
           Model Node A---
              Attribute- 1
              Attribute- 2
          Model Node B--
              Attribute- X
              Attribute- Y
          Model Node C--
             Attribute- F
             Attribute- G
    Now I want bind all these Nodes to one table. So, I created a "Value Node" - V under Model Node Root. Then create Value Attributes under Node -V with the similar names of the above Model Node attributes and then change their "Type" property exactly same as the Model Attributes Type.
    Then, create a Table and then Bind the table to the Value  Node. Now, in your wdDoinit Method of your Component Controller, give this code
    WDCopyService.copyElements(wdContext.node<modelnode>, wdContext.node<valuenode>);
    Later in your View Implementation give the following Code.
    IPrivate<Name>View.ISourceValueNode iSourceValueNode= wdContext.nodeSourceValueNode();
    IPrivate<Name>View.ISourceValueElement iSourceValueElement;
    IPrivate<Name>View.ITargetRFC Element iTargetRFCElement;
    for(int i=0;i<wdContext.nodeTargetRFC().size();i++){
    iTargetRFCElement = wdContext.nodeTargetRFC().getTargetRFCElementAt(i);
    iSourceValueElement = iSourceValueNode.createSourceValueNodeElement();
    iSourceValueElement.set<attribute name>(iTargetRFCElement.get<Attribute name>());
    iSourceValueNode.addElement(iSourceValueElement);
    iSourceValueNode.moveNext();
    I hope this helps you. Let me know if you need any information.
    Regards,
    Gopal.

  • My computer didn't reconize my ipod, it tell me I hav conect with another biblio,but I never put it in another computer.How I can't  lose all the game on my ipod because itune want to erase my ipod and sync.What I can save the game in my Ipod to computer

    My computer didn't reconize my ipod, It tell me I have syncr with a another biblio, but I nerver put it in another computer. How I can't lose all the game on my ipod because itune want to erase my ipod and sync, What I can do tosave

    My computer didn't reconize my ipod, It tell me I have syncr with a another biblio, but I nerver put it in another computer. How I can't lose all the game on my ipod because itune want to erase my ipod and sync, What I can do tosave

  • I lost my iPhone. i got a new one, how can i back up all the contacts i had in the old one (iPhone 4S).

    i lost my iPhone. i got a new one, how can i back up all the contacts i had in the old one (iPhone 4S). When i go to Itunes it start as a new iphone.

    Contacts are not a part of back up.
    Contacts are sync with a compatible programme on your computer depending on your operating system (Windows or Mac). For example, Microsoft Outlook (for both Windows and Mac), Windows Contacts (for Windows) and Addressbook (for Mac).
    Or contacts are also backed up in iCloud (depending if you chose to do so).
    So, sync back the contacts from any of these programmes. If you have not made a backup of your contacts in any of these progammes, then they are gone.
    http://support.apple.com/kb/HT1296

  • I have installed the latest version of iOS in my ipad but forgot to backup the content, what should i do!!! I don't want my media and other data erased, how can i find back all the data in my ipad? I haven't restore ipad yet, so any others way can be use?

    I have installed the latest version of iOS in my ipad but forgot to backup the content, what should i do!!! I don't want my media and other data erased, how can i find back all the data in my ipad? I haven't restore ipad yet, so any others way can be use? Now my ipad is in recovery mode.

    Once you are in Recovery Mode, it's too late to do any backup. I am afraid you are going to lose your data.

  • How to grant privileges on all the tables in a schema

    Hi All,
    Can you tell me how to grant privileges on all the tables of a schema A
    to schema B.
    For Example:
    There are 200 tables in schema A, I wanted to grant select privilege on all the tables of a scheme A to schema B.
    Thanks in advance.

    note that USER is the user that will have the select priviledge
    the procedure includes views as well
    CREATE OR REPLACE PROCEDURE GRANT_ACCESS_ON_USER IS
    CURSOR c1 is select table_name from user_tables;
    CURSOR c2 is select view_name from user_views;
    tablename user_tables.TABLE_NAME%TYPE;
    viewname user_views.VIEW_NAME%TYPE;
    BEGIN
    tmpVar := 0;
    OPEN c1;
    loop
         fetch c1 into tablename;
         EXIT WHEN c1%NOTFOUND;
         EXECUTE IMMEDIATE 'GRANT SELECT on '||tablename ||' to USER';
    end loop ;
    close c1;
    OPEN c2;
    loop
         fetch c2 into viewname;
         EXIT WHEN c2%NOTFOUND;
         EXECUTE IMMEDIATE 'GRANT SELECT on '||viewname ||' to USER';
    end loop ;
    close c2;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    -- Consider logging the error and then re-raise
    RAISE;
    END;
    /

  • How do I turn off 'All' the photo stills in iMovie 11 without having to turn off each one?

    How do I turn off 'All' the photos in iMovie 11 without having to turn off each one?

    Hi AppleMan 1958,
    Sorry I was typing too quickly ....
    It should have said: "How do I turn off the 'Ken Burns' effect of all the photos without..."etc.
    Having read another comment on this forum, I think I have the answer.
    By going to File>Project Properties, and then turning off the Ken Burns effect.
    Don't know how you feel about iMovie 11, but I think its pretty awesome don't you think?
    Thanks for pointing out my stupid question!
    Kind regards,
    Bob

  • RAC Instalation Problem (shared accross all the nodes in the cluster)

    All experts
    I am trying for installing Oracle 10.2.0 RAC on Redhat 4.7
    reff : http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnLinux
    All steps successfully completed on all nodes (rac1,rac2) every thing is okey for each node
    on single node rac instalation successfull.
    when i try to install on two nodes
    on specify Oracle Cluster Registry (OCR) location showing error
    the location /nfsmounta/crs.configuration is not shared accross all the nodes in the cluster. Specify a shared raw partation or cluster file system file that is visible by the same name on all nodes of the cluster.
    I create shared disks on all nodes as:
    1 First we need to set up some NFS shares. Create shared disks on NAS or a third server if you have one available. Otherwise create the following directories on the RAC1 node.
    mkdir /nfssharea
    mkdir /nfsshareb
    2. Add the following lines to the /etc/exports file. (edit /etc/exports)
    /nfssharea *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
    /nfsshareb *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
    3. Run the following command to export the NFS shares.
    chkconfig nfs on
    service nfs restart
    4. On both RAC1 and RAC2 create some mount points to mount the NFS shares to.
    mkdir /nfsmounta
    mkdir /nfsmountb
    5. Add the following lines to the "/etc/fstab" file. The mount options are suggestions from Kevin Closson.
    nas:/nfssharea /nfsmounta nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
    nas:/nfsshareb /nfsmountb nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
    6. Mount the NFS shares on both servers.
    mount /mount1
    mount /mount2
    7. Create the shared CRS Configuration and Voting Disk files.
    touch /nfsmounta/crs.configuration
    touch /nfsmountb/voting.disk
    Please guide me what is wrong

    I think you did not really mount it on the second server. what is the output of 'ls /nfsmounta'.
    step 6 should be 'mount /nfsmounta', not 'mount 1'. I also don't know if simply creating a zero-size file is sufficient for ocr (i have always used raw devices, not nfs for this)

Maybe you are looking for

  • Move audiobooks from one computer to another via iPod Touch

    I have two 'authorized' computers with audiobook files. I want to move the files between the two computers, but when I plug in the iTouch it gives me the 'You can only sync with one library, shall I erase and replace?' My computers, my files.. how ca

  • Is PLSQL support multi thread mechanism?

    hi i am tring to simulate my problem here. just go thru and bestow a good solution. consider, i have table called "table_a" which contains around 10 records. for each record having 100 'levels of status infromation' which stored in another table call

  • New excel file cannot be opened with right click in any folder.

    Usually I create a new file (.xlsx) by right click inside any folder of windows 7 . Recently I am observing that it is not being possible to create a new file (.xlsx) by right click when I am inside a folder. Whenever I right click in order to create

  • SAP R/3 4.6C Installation in HPUX with 4 sapdata files

    Hi all, We are building a sandbox system to perform our upgrade. While installing SAP R/3 4.6c, in HPUX/Oracle 10g, we need to have only 4 sapdata filesystem: Oracle/DV1/sapdata1 Oracle/DV1/sapdata2 Oracle/DV1/sapdata3 Oracle/DV1/sapdata4. But while

  • J2ME Wireless Toolkit 2.5

    Hi all, I would like to ask if this new veresion (J2ME Wireless toolkit 2.5) supports ArrayList. I have developed a program with ArrayList , is it possible to run it in this new version without problems. Thanks