on 01-24-2007 8:03 AM
Hi All,
I am trying to copy the contents of model table to newly created value table. For this i have written following code -
IWDNode targetnode = wdContext.nodeZhress_Firstday_Service_ValueNode();
IWDNode sourcenode = wdContext.nodeOutput().nodeT_Zhress_Firstday_output();
WDCopyService.copyElements(sourcenode,targetnode);
tagetnode is the node which is created in root context and sourcenode is the node which the node that shows the output when RFC runs.
After that by using copyService i m trying to copy from source to targetnode.
This target node is also binded to table, for getting the output.
When i copied the things from source to target it's size is equivalent to source node but its not getting any data from source node and showing blank in the table.
When i have tried to get whats it showing, its showing me null .
Please help me on this problem.
Regards,
Roshan Gupta
Hi Rishan Gupta,
The method WDCopyService.copyElements copies only those attributes from "source" which are present in "target" and if they match (the names equal case-sensitive and the types are compatible).
Please check if your contexts nodes have the same sets of attributes.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roshan,
Can you please check the table binding?
Also try to print the size of your target table.
Regards,
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubham,
Thanks for ur kind reply!
But i have checked the size also and as i said earlier its geeting the size of model node.
i.e value node is getting the size of model node which is 8 here.
I have again binded but i dont think that it will create any problem because only 4 attributes are present in value node so in this case there is no confusion or any misbinding with any wrong node which can create any binding problem.
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.