cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning table result

Former Member
0 Kudos

Hi Guru's,

Need some advice here (again). I have a FM that returns a a result in a table. What i want to do is, on WdDoInit, I would like to go through the table and assign all the values to a value node that i've manually created. The value node has got 5 attributes. How can i do this? Thanks in advance

Reagrds

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

Hi Nahoj,

to establish this,

1. Create a blank Value Node.

2. Right Click->edit Structure Binding.

3. Select the table from which the values are to be copied.

4. select all the attributes and click on finish

5. Right click on the value node->delete structure binding.

In ur wdDoInit() method write the following code:

wdCopyService.copyElements(wdContext.<model node>,wdContext.<Valuenode>);

Note:- for this statment to execute the name of the variables and their type declared in your value node shoud match, or else it will throw an error.

Hope this helps u

Regards,

Poojith MV

Answers (0)