Table closing

Hi,

we need a way to create a table that will spread over a few pages.
At each page the table needs to have the headers and the footers.

Thanks,
Yishay

This is the template:

Description Index
****
{{#foreach meeting_subject}}{{issue_description}} {{issue_index}} {{/foreach meeting_subject}}

And this is what we want to get:
Page 1:

Description Index
****
A**** 1
B**** 2
C**** 3

Page 2:

Description Index
****
A**** 4
B**** 5
C**** 6

This is what we get instead
Page 1:

Description Index
****
A**** 1
B**** 2
C**** 3

Page 2:

****
A**** 4
B**** 5
C**** 6

Hi Yishay,
You can open your template in MS Word, select header row and click Repeat Header Row option as you can see at https://support.microsoft.com/en-us/office/repeat-table-header-on-subsequent-pages-2ff677e0-3150-464a-a283-fa52794b4b41?ui=en-us&rs=en-us&ad=us to show header row on each page.
Best Regards,

Hi Muhammad,

Thanks for the reply.
I tried what you offered, and it helped us in the repeating header row request, thanks!
On the other hand the tables are left open on the bottom part each page looks something like the example attached.

How can we close the tables?
Thanks,
Yishay

Hi Yishay,
You can right click the table in MS Words and click Border and Shading menu item. In Border and Shading dialogue, you can select bottom border for your table.
Best Regards,

Hi Muhammad,

This was already the case for the table at hand, but again, when the file is created each page start with an header an finishes with a table opened on the bottom.
Am I missing something, is there another way to do this?

Thanks,
Yishay

Hi Yishay,
I have attached a sample template and XML for your reference. You can update your template accordingly. Please share your template and XML if the problem persists.
Best Regards,

Hi Muhammad,

Thanks a lot.
Could you please attach the output you get when you run it?

Thanks again,
Yishay

Hi Yishay,
Please find attached the output file.
Best Regards,

Hi Muhammad,

Thanks for the example.
I don’t what I’m missing, can you take a look?

Thanks,
Yishay

Hi Yishay,
Can you please also share the XML data to execute mail merge? Also, I do not see any title row in your table. Can you please share which row is used as a title row?
Best Regards,

Hi Muhammad,

It is not an XML, but a JSON.
Attached is an example I created for you.

I removed the header in the document I sent you, but you can add one if that helps.

Thanks,
Yishay

Hi Yishay,
Thanks for the details. We will share the updated template with you shortly.
Best Regards,

Hi Yishay,
Your data and template have some issues and throws exception when I try to execute template. Can you please share a working template and data?
Best Regards,

Hi Muhammad,

I removed a square bracket by mistake when I created the example.
Attached is the example with the missing bracket.

Thanks,
Yishay

Hi Yishay,
Sorry, I am still getting the same exception “{“Message”:“After parsing a value an unexpected character was encountered: :. Pa
th ‘protocol[0]’, line 1, position 30.”}”.
I will try to figure the issue out. You can also share the updated JSON if it works at your end.
Best Regards,

Hi Muhammad,

I replaced the data with N/A
Maybe the / in N/A cause the problem?

Thanks,
Yishay

Hi Yishay,
We will share a solution as soon as possible.
Best Regards,

Hi Yishay,
Sorry for the delay. Yes, I was able to get your template and JSON working after some modifications and was able to notice the issue.
In fact there are several rows in your table. You will be able to get your desired output if you keep only two rows (first row as header and second row for repeating data) in your table. Please delete remaining rows and keep only header row and data row to get your desired output.
Best Regards,