Skip to Content
avatar image
Former Member

How to bind a value node inside a value node

In the help of webdynpro, if you search for:

"Initializing the Controller Context of a View"

the first result shows a sample on how to bind a node inside a node.

At the end, it does the following:

newCustomerNodeElement.nodeAddress().bind(newAddressNodeElement);

I am trying this in Webdynpro but it does not work.

I am not able to access the second node (in this case nodeAddress).

It only returns .node()

Can you show me a sample on how to create this.

Regards,

Fran├žois

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 25, 2004 at 07:53 AM

    Hi Francois,

    assuming you have a value node A defined with a childnode B, then this:

    I<Controller>.IAElement ael = wdContext.nodeA().createAElement();
    ael.nodeB().bind(bElement);

    is only possible, if child node B is <b>not</b> a singleton node. So simply set the singleton property to false for your specific child node.

    Hope that helps.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded