on 12-04-2014 9:14 AM
Hi all,
I am a beginner of WDA, I am following some guides to build an easy WDA application.
I noticed that some tutorials use if_wd_context_element.
But in ATTRIBUTE tab of VIEW, you cannot find if_wd_context_element but if_wd_context_node.
And if_wd_context_node also has the methods like GET_ATTRIBUTE.
I have tried both and both of the two objects work correctly.
My question is:
Is this if_wd_context_element used for the old version of WDA and it may be not used now?
In case of a Node with only one Element, it doesn't matter which class (node/element) you're using, but if you have a node with 0..n elements, you have to get the specific element.
I take always the element class, because it's something "clearer" than using the node class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ming,
If_wd_context_element is no where defined in component but its an interface used at runtime to read the context element reference of context node and is also used to get node's attributes.
Comparison:
Context node: is like table
Context element: is like a row/record in it
Attribute : is like a field
A context node can have as many as context elements inside it.
DD: From table ---> you get many rows/records ---> from each work area you can access fields
WD : From context node ----> you get the context elements ---> from each context element you can access attributes
Please refer to my answer in the below link
Hope this helps you in understanding concept.
Regards,
Rama
Hi,
follow below links
http://scn.sap.com/thread/763892
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/32/bf5b4150b38147e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/fd/be5b4150b38147e10000000a1550b0/content.htm
Hope it will help you
Regards,
Rajesh K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.