Skip to Content
avatar image
Former Member

Tree Hierarchy in Web Dynpro

Hello All,

I want to create a web dynpro application that implements some functionlity that I saw in the SAP backend system. In the backend, I have a transaction that allows me to drill down into nodes and add and remove them with a right click context menu. This is like a tree structure with the ability to add, remove and modify node elements. I want to present this to the front end user using web dynpro and possible in a nice table format. How can I go about doing this? Any suggestions?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 06, 2009 at 04:40 PM

    Search for TreeByNestingTableColumn and read the excellent weblogs by Valery Silaev:




    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Monalisa Biswal

      Hi Monalisa,

      in my layout i have a toolbar bar button called "Insert Node".

      This button fires an action with the signature

      onActionInsertNode( wdEvent, IPrivate<n>.ILevelElem elem).

      the code inside this event calls the method to add the node

      addNewLevel(elem.nodeCHILD_LEVEL(), elem.getID());  // NULL pointer exception at this line

      this is the method implementation

      public void addNewLevel( com.sjm.wdp.wdp.IPrivateTreeAppCompView.ILEVELNode node, java.lang.String parentId )
          //@@begin addNewLevel()
          PrivateTreeAppCompView.ILEVELElement newLevelElement;
          	newLevelElement = wdContext.nodeLEVEL().createLEVELElement();

      notice that I'm grabbing the lead selection id of the node selected.

      However, this code gives me a null pointer exception at the line the calls the method addNewLevel.

      What am I doing wrong?

  • avatar image
    Former Member
    Jul 02, 2009 at 02:22 PM


    Add comment
    10|10000 characters needed characters exceeded