on 04-20-2007 8:19 AM
Hi all,
Anybody knows how to assign the value of a DropDownByIndex element (Attribute A10 in Node N1) to another element in another node (Attribute A20 in Node N2) in the same View Context. The structure of the View context is as follows.
NodeN1
-Attrib A10
Node N2
-Attrib A20
-Attrib A21
-Attrib A22
-Attrib A23
Regds
Thiru
Hi Thiruvengadam Dorairaj,
You can do as follows:
If both data types of A10 and A20 are same,
wdContext.currentNodeN2Element().setA20(wdContext.currentNodeN1Element().getA10())
Thanks,
Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I hope attribute here you are talking about are value attribute, do as follows,
IPrivate<View name>View.INodeN1Element eleN1 = wdContext.currentNodeN1Element();
IPrivate<View name>View.INodeN2Element eleN2 = wdContext.currentNodeN2Element();
eleN2.setAttributeA20(eleN1.getAttribuiteA10()); // this will do the assignment task
i assumed your context is defiend design time and attribute A10 etc are value attributes
hope it helps
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thiruvengadam,
Try this
IWDNodeElement node = wdContext.nodeDropDownByIndexVNode().getElementAt(10);
wdContext.currentNodeN2Element.setAttr20(node.getAttributeAsText("AttrA10"));
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try to set the attribute by writing code
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 | |
9 | |
7 | |
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.