Skip to main content
Nintex Community Menu Bar
Solved

Print table from Repeating section

  • March 2, 2025
  • 4 replies
  • 81 views

Forum|alt.badge.img+5

Hello,

 

I’m trying to print an HTML table using a loop for each but I’m facing issue it’s only print the last item in the table How I can solve it?

please check the screenshoots:

Output:

 

Best answer by SimonMuntz

Hi ​@wejdan 

I hope you are doing well.

Firstly, create a variable and store your header information.
I have called mine TableOut.

<tr>
<th style="border: 1px solid black;">Brand</th>
<th style="border: 1px solid black;">Material</th>
<th style="border: 1px solid black;">Item</th>
<th style="border: 1px solid black;">Branch</th>
</tr>

Loop through your data, and with each iteration add it to the TableOut variable like so:
 


Once you have constructed your inner table data, surround it with your table tags.
 

You will end up with something like this:
 

I have attached an example workflow for you.

4 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • March 2, 2025

Hi ​@wejdan 

I hope you are doing well.

Firstly, create a variable and store your header information.
I have called mine TableOut.

<tr>
<th style="border: 1px solid black;">Brand</th>
<th style="border: 1px solid black;">Material</th>
<th style="border: 1px solid black;">Item</th>
<th style="border: 1px solid black;">Branch</th>
</tr>

Loop through your data, and with each iteration add it to the TableOut variable like so:
 


Once you have constructed your inner table data, surround it with your table tags.
 

You will end up with something like this:
 

I have attached an example workflow for you.


Forum|alt.badge.img+5
  • Author
  • Rookie
  • March 10, 2025

Thank you it is working fine,

I have one more question,

How I can insert total in one row only like below table?

 

 


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • March 10, 2025

Hi ​@wejdan,

Add another row after the loop to calculate your sum before enclosing all your rows in table tags.

 


MillaZ
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • March 17, 2025

Hi ​@wejdan 
Has your questions been answered?