Working with Tables
- Generating a Simple Table
- Varying Table’s Contents
- Data Filtering and Grouping
- Calculating a Progressive Total
- Highlighting Rows
- Setting Cell’s Background Color
- See Also
Tables are widely used in almost every area of human endeavor to ensure precision, correctness and comparability of data. They organize text into rows and columns, which can make information easy to consolidate and analyze.
The template syntax, which was extensively described in the previous sections, can be applied to tables in the form of data bands and conditional expressions. This is used to generate a range of output rows given a range of different input data elements.
There are several useful techniques you can use within your template expressions to customize table generation. They can be best illustrated with simple examples provided below.
Generating a Simple Table
The following example shows how to generate a simple In-Table List:
Customer | Order Price |
---|---|
|
|
Total |
|
Varying Table’s Contents
The following example shows how to generate an In-Table List with a variable contents using conditional expressions:
Customer | Order Price |
---|---|
| |
|
|
Total |
|
Data Filtering and Grouping
The following example shows how to generate an In-Table List with data filtering and grouping:
Customer | Order Price |
---|---|
|
|
Calculating a Progressive Total
The following example shows how to generate an In-Table List with a progressive total, that requires using a var
tag:
Customer | Order Price |
---|---|
|
|
Highlighting Rows
The following example shows how to generate an In-Table List with row highlighting:
Customer | Order Price |
---|---|
|
|
|
|
Total |
|
Setting Cell’s Background Color
The following example shows how to generate an In-Table List with a background color:
Customer | Order Price |
---|---|
|
|
See Also
- A complete table generation example from the “Quick Start” section.