Skip to Content
avatar image
Former Member

Create nodes and sub nodes in a tree

Hi everybody.

how can i create the following node and subnode in a Tree?

--sap

-


test1

-


test2

I am looking for a piece of code in order to understand it.

regards,

seed

Edited by: seed_mopo on Sep 4, 2008 10:20 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 10:13 AM

    Hi,

    Create context node as follows

    Root

    Child (Resursive Node of Root)

    Name (Attribute of type String)

    Following is the code to add a root element and its children (in the following case 2)

    IRootElement rootElement = wdContext.nodeRoot().createAndAddRootElement();
    	  rootElement.setName("Root");
    	  
    	  IRootElement child1 = rootElement.nodeChild().createAndAddRootElement();
    	  child1.setName("Child1");
    
    IRootElement child2 = rootElement.nodeChild().createAndAddRootElement();
    	  child2.setName("Child1");
    
    
    

    Regards

    Ayyapparaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:46 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:51 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:51 AM

    Hi,

    Refer the following blog

    Create a Web Dynpro Tree from an XML file

    Regards,

    P.Manivannan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 09:37 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 10:24 AM

    Hi,

    Search with this " Constructing a Recursive and Loadable Web Dynpro Tree " in the SAP NetWeaver Developer Studio's Help for Step By Step Explanation With Code.

    With Regards,

    Roop Kumar.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 06, 2008 at 09:09 AM

    Right click on the context root node then select value node.

    Add comment
    10|10000 characters needed characters exceeded