Hi all,
In view, we can see WD_CONTEXT which is TYPE REF TO IF_WD_CONTEXT_NODE.
In IF_WD_CONTEXT_NODE-GET_CHILD_NODE, we can see parameter CHILD_NODE is also TYPE REF TO IF_WD_CONTEXT_NODE.
I tried to use WD_CONTEXT directly when I want to get the value of the element like WD_CONTEXT->GET_CHILD_NODE(but this is wrong).
Could anyone tell me what exactly is WD_CONTEXT&CHILD_NODE?
Hi,
The WD_CONTEXT attribute is a reference to the root node of the context of the controller. Regardless of the edited controller, it is always a reference variable of the type IF_WD_CONTEXT_NODE.
You can use WD_CONTEXT and the interface methods to edit the content of a
context node in your controller method.
Ex:- The controller context contains the MY_NODE1 node.
data: TABLE_NODE type ref to IF_WD_CONTEXT_NODE.
TABLE_NODE = WD_CONTEXT->GET_CHILD_NODE( 'MY_NODE1').
Hope this helps you.Pls revert for further clarifications.
Thanks
KH
Add a comment