on 02-16-2009 8:16 AM
Hi all,
I have a context node which has an attribute(of type string) that needs to be copied to another field that corresponds to the attribute of another node.
Please let me know how to do it.
Thanks & Best Regards,
Srilakshmi B
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make this a calculated attribute and in the get/set method assign the values to the other attribute..
To do this select the attribute and go the properties view and set the calculated property to true and read only to false.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srilakshmi,
If you binded those two attributes to 2 different input fields,
say the node structure be the following
node1
- val1
node2
- val2
say u copy val2 into val1.
wdContext.currentNode1Element().setVal1(wdContext.currentNode2Element().getVal2());
Regards,
Sam Charles J.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wdContext.currentTargetNodeElement().setStrAttrubute(
wdContext.currentSourceNodeElement().getStrAttribute());
or
WDCopyService.copyCorresponding( wdContext.currentSourceNodeElement(), wdContext.currentTargetNodeElement());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
use WDCpoyService();
public static void copyCorresponding(Object source, Object target)
thanks
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 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.