on 03-30-2006 2:06 PM
Hello,
I'm using Web Dynpro since few days, and I wondering, why should I use :
<b>wdContext.currentContextElement().setMyVariable()</b> to access to a context
and not :
<b>wdContext.setMyVariable()</b>
I really don't understand the logic of that. Is it possible to have more than one context for a view for instance ?
Regards,
Hi Berthe,
The wdContext.currentContextElement() is used so as to make sure that you are directly accessing the Context Node and can access the attributes which are directly under this node.
If for example you have created another node, say "<b>Temp</b>" then you will be having a extra method to call named: <b>currentTempElement()</b>, which will make sure that you are setting only the values of the Temp Node, not any other node.
<b>>>Is it possible to have more than one context for a view for instance ?</b>
No, there will be only one context node for a particular view.
I hope this helps you and solves your problem.
Regards
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Berthe,
...?? Hey!! Do you want to know how to create a new Node.. I mean its very simple, if you are asking that.
Just go to the Context Node and right Click it. There will be an option for <b>New -> Node.</b>
I hope this is what you were asking..
Regards
Pravesh
PS: Please consider rewarding points if helpful.
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.