cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while copying from model node to value node!!

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Jhansi,

Thanks for ur valuable help that solved my problem

thanks a lot!

Regards,

Roshan

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

check out this threads

Regards,

Gopi

Former Member
0 Kudos

Thanks Gopi for ur kind help but the given link doesnt open any page.

Please send it again to me

Thanks and Regards,

Roshan Gupta

Former Member
0 Kudos

The specified thread [0] was not found.

Former Member
0 Kudos

Hi Roshan,

Can you please check the table binding?

Also try to print the size of your target table.

Regards,

Shubham

Former Member
0 Kudos

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.