Skip to main content
Nintex Community Menu Bar
Solved

Print table from Repeating section

  • March 2, 2025
  • 4 replies
  • 48 views
  • Translate

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.

View original
Did this topic help you find an answer to your question?

4 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2452 replies
  • 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.

Translate

Forum|alt.badge.img+5
  • Author
  • Rookie
  • 31 replies
  • 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?

 

 

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2452 replies
  • March 10, 2025

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+21
  • Nintex Employee
  • 667 replies
  • March 17, 2025

Hi ​@wejdan 
Has your questions been answered? 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings