Skip to main content
Nintex Community Menu Bar
Solved

Print table from Repeating section

  • Mar 2, 2025 8:17 AM UTC
  • 4 replies
  • 140 views
  • Translate All

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 Simon Muntz

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.

View original

4 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Answer
  • Mar 2, 2025 10:51 PM UTC

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.

Translate

Forum|alt.badge.img+5
  • Author
  • Rookie
  • Mar 10, 2025 9:06 AM UTC

Thank you it is working fine,

I have one more question,

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

 

 

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Mar 10, 2025 10:06 AM UTC

Hi ​@wejdan,

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

 

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Mar 17, 2025 11:13 AM UTC

Hi ​@wejdan 
Has your questions been answered? 

Translate