cancel
Showing results for 
Search instead for 
Did you mean: 

How to bind a value node inside a value node

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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