on 05-08-2009 5:36 AM
Hi,
Can you please tell me How to move the records within a node ?
Thanks,
Ravi.
Hi Ravi,
Use this API which is associated with each node.
wdContext.node<YOUR_NODE_NAME>().swapElements(index1, index2);
where:
index1: from index.
index2: to Index.
I hope this solve your issue. If you need any further information please let me know.
Thanks and 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,
We have 2 option to move records.
One is moving records from one node to another node
WDCopyService.copyElements(wdContext.nodeSource(), wdContext.nodeDestination());
But in that case , all the context attribute name and type of both the node should be same.
another thing is that, you need to get the context attribute value of the source node and set the same value to the context attribute value of the destination node.In this case no need to keep the same name of attribute.
Like this
<nodeName>.setZeffect_Enddate(getDBFormat(wdContext.current<Node>Element().getEffectiveEndDate()));
thanks
Kanai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use this for moving elements in node
wdContext.nodeAbc().moveElement(index1,index2);
Regards
Trilochan
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.