Document Builder: How to create and use Table variable

143 阅读1分钟

Created by Jerry Wang on Jul 13, 2014

1. First you should define the table cells for each column as simple variables.

For me I would like to have a table with two columns "Class ID" and "Class Name", so I first create two simple variables accordingly.

clipboard1

 

2. create a structure variable acting as the line structure of your table:

clipboard2

 

 

put the two simple variables created in step 1 to this structure variable:

clipboard3

 

3. create a table variable, specify the structure variable created in step 2 to its "Variable Structure", and specify the simple variable which will be used as key field.

clipboard4

 

4. Add the new table variable to variable hierarchy tree. In my example, I put the table structure to the root variable of content ZCR_KT.

clipboard5

 

Use this activity to check the variable tree hierarchy:

clipboard6

 

clipboard7

 

And then in the runtime, you could drag the table variable as a whole and drop it into element layout part to generate a table in the document.

clipboard8