I have a variable with several values, I would like to iterate over the variable and create two distinct tables, one at the beginning of the document and another at the end.
However, when I replicate the table iteration code, only one is created. Is it possible to create two tables from the same variable?
.docx file text:
Some document start....
[onshow;block=begin;when [var1.total!=0]
| Name | Barcode |
| ------------------------- | ---------------- |
| [var1.name;block=tbs:row] | [var1.barcode] |
[onshow;block=end]
Some document middle....
[onshow;block=begin;when [var1.total!=0]
| Name | Barcode |
| ------------------------- | ---------------- |
| [var1.name;block=tbs:row] | [var1.barcode] |
[onshow;block=end]
Some end of document....
I tried to separate the tables into different paragraphs, but without success.
Yes it is possible to use the same variable on to separete tables.
I will add an example, let's say that in your code you have this array:
and all the basic to make it work
Now, for sure you are using
MergeBlock,something like:and like that you can use it in the table:
oke, so what you need to do is add another
MergeBlockbut now the first parameter of
MergeBlockit will be 'b' not 'a' (it's like a new instance however it uses$datatoo, the same array 'a' is using)Final result:
If you have any question just ask!