cancel
Showing results for 
Search instead for 
Did you mean: 

when a context node use non-singleton, how to invoke the supply funtion eve

Former Member
0 Kudos

when a context node use non-singleton, how to invoke the supply funtion everytime the lead selection is changed ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Wei,

You have to track lead selection change in parent node and invalidates node manually:


final IWDNodeElement parent = wdContext.currentMyParentElement();
parent.nodeChild().invalidate();

As far as your question related to "read-only table row", then you may use calculated attributes in child node instead of invalidation.

VS

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi wei,

<b>Non-singleton nodes:</b>

Web Dynpro allows you to define non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.

<b>Supply function:</b>

The Web Dynpro tools also automatically enhance the corresponding controller class with a supply function including the user coding area contained in it

Supply functions are implemented as methods of type

<b>public void supplyChildNodeElements(SomeChildNode node,

SomeParentNodeElement)</b>

in a Web Dynpro controller (view controller or custom controller). Supply functions and context nodes have a 1..1 relationship, that is, supply functions are specific for individual context nodes. Under certain conditions, supply functions are called by pages in the Web Dynpro runtime environment.

Hope this helps u,

Regards,

Nagarajan.