on 06-08-2007 3:55 PM
Hi folks,
I came here with the very simple question but for now it is mystery for me. If I declare in View Context an value node (e.g. Employee) and inside that node some value attributes (e.g. FName, SName) how can I instantiate that node and how can I access those attributes from the code of the view (I mean the view which context contains employee node). Thanks in advance for you effort end time.
Kind Regards,
Aleksandar
Hi Aleksandar,
Suppose your Value node name is Name and Value attribute name is FirstName and LastName.
Name
-
FirstName
-
LastName.
Now to acces this node... first create and element of the value node in the WdInit of your View like the following.
wdContext.nodeName.addElement(wdContext.nodeName.createElement);
Now if you want to access the Vlue attribute called FirstName then you can do it in the following way...
To get the value of the value attribute.
wdContext.currentNameElement.getFirstName()
or if you want to set the value of the value attribute then
wdContext.currentNameElement.setFirstName("Mr. X");
If you need more hep let me know... Please reawrd points if helps.
Thanks and Regards
Avijit Dhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.