Skip to Content
avatar image
Former Member

Adding dynamic context node

Hello,

I having problems with creating a dynamic context node.

How can i add a new node to the context on runtime and not on design time.

Best Regards,

Smadar.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 29, 2005 at 10:43 AM

    Before adding context nodes with the runtime API, ask yourself if this is needed at all.

    Can you please describe your use case?

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Can you tell us more? Creating buttons at runtime does not necessarily mean you have to add context nodes at runtime.

      What I want to avoid is that you get thousands of answers on how to use the context API but the problem probably is much simpler to solve.

      Armin

  • avatar image
    Former Member
    Nov 29, 2005 at 10:48 AM

    Hi,

    IWDNodeInfo nodeinfo=wdContext.getNodeInfo();

    /* This will add a ValueNode */

    IWDNodeInfo customerNode=nodeinfo.addChild("Customer",null,true,true,true,false,false,true,null,null,null);

    /* This will add a Attribute to the above Node */

    IWDAttributeInfo custAttr=customerNode.addAttribute("AttribName","com.sap.dictionary.string");

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2005 at 11:10 AM

    hi smadar,

    For creation of dynamic nodes do check on to this link.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on dynamic programming of web dynpro applications - 17.htm

    Regards,

    Nagarajan.

    Add comment
    10|10000 characters needed characters exceeded