Microsoft Word Template - Repeating rows

Posted by mnashi on 08-Nov-2017 22:22

I have a word template having a table with a header and repeating rows. I tried to create the template as shown in the user manual but the tables are being shown separately. How can I make sure header row is shown along with the repeating rows?

Here is how it's being shown in the word document: 

Sl No

Product

Price

Quantity

 

1

Priduct 1

$ 5,555.00

1,00

1

Priduct 2

$ 120.00

1,00

The template is as below:

Sl No

Product

Price

Quantity

{!#LOOP_BEGIN.R371612903#4C5DjzFaQ1qyRE15hfNBaw}

1

{!R371612903.product_r}

{!R371612903.unit_price}

{!R371612903.quantity}

{!#LOOP_END.R371612903}

 

Appreciate if you could share me a working template with a similar scenario.

Thanks

Posted by Ricardo Rafols on 09-Nov-2017 10:13

Hi mnashi,

I have attached my XML APP for your analysis.

What I did:

- Reduced the height and font of  LOOP_BEGIN AND LOOP_END rows

- Removed the bottom border from the header and the top border from the LOOP_BEGIN

- Removed the top border from LOOP_END and bottom border from the item row

I.e 

[View:/cfs-file/__key/communityserver-discussions-components-files/25/Word-Template-Testing_5F00_v1.xml:320:240]

All Replies

Posted by Rajkumar Mateti on 09-Nov-2017 03:04
Hi mnashi,
 
Sample template is defined below. This will also give one Empty row at beginning and at end of the actual data.
 
Logged defect for getting empty rows at beginning and at end of the actual data.
 

Sl No

Product

Price

Quantity

{!#LOOP_BEGIN.R371612903#4C5DjzFaQ1qyRE15hfNBaw}

1

{!R371612903.product_r}

{!R371612903.unit_price}

{!R371612903.quantity}

{!#LOOP_END.R371612903}

 
 
Thanks,
Rajkumar
 
Posted by Ricardo Rafols on 09-Nov-2017 10:13

Hi mnashi,

I have attached my XML APP for your analysis.

What I did:

- Reduced the height and font of  LOOP_BEGIN AND LOOP_END rows

- Removed the bottom border from the header and the top border from the LOOP_BEGIN

- Removed the top border from LOOP_END and bottom border from the item row

I.e 

[View:/cfs-file/__key/communityserver-discussions-components-files/25/Word-Template-Testing_5F00_v1.xml:320:240]

This thread is closed