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:

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:
Hi
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.
Thank you it is working fine,
I have one more question,
How I can insert total in one row only like below table?
Hi
Add another row after the loop to calculate your sum before enclosing all your rows in table tags.
Hi
Has your questions been answered?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.