Best Manufacturer Awards
Streamline your document creation process with Carbone
- Template type document docx simple
- Carbone min. v4.0.0+
- Features loop nested array
- Target award management result custom
Objectives
Generate an award with the following features:
- display a table,
- display a nested table
Solution
Here’s how to construct a template to achieve this with Carbone:
Layout
Create a main table to structure the elements in your template.
Notes: In the Table properties> Table tab, set the Text wrapping to None. In the Row tab, uncheck Allow row to break across pages to ensure consistency
Data
Insert the appropriate Carbone tag to read data from your array (e.g.,
{d.manufacturers[i].name}
).Define the iteration
[i+1]
in row below to generate a row for each key (e.g.,{d.manufacturers[i+1]}
)Note: Highlight the first row of your main table, right click, go to Table properties > Row, and select the option Repeat as header row at the top of each page to ensure it appears as a header on every page.
Nested array
Insert a Table within a cell to display a nested array.
Insert the appropriate Carbone tag to read data from your nested array (e.g.,
{d.manufacturers[i].models[i].name}
).Define the iteration
[i+1]
in row below to generate a row for each key (e.g.,{d.manufacturers[i].models[i+1]}
)Note: Remove all borders from the nested table in Table Design to ensure better integration
And there you go!
You might also like
Trusted by 600+ paid customers in 40+ countries














