The Dynamic Table builder adds a table to a named tag or other location on a page or pages.
Only use this builder when you need the table to change at run time. For most tables, use the Data Page builder.
When you embed a Dynamic Table builder within a model and provide a content source, the Dynamic Table builder automatically creates an HTML table of appropriate size to display the specified content. A table can include columns. Columns in a table are identified by the column names. A column in a table can be used as a placeholder for other control builders, such as a Button builder or Check Box builder. When this is the case, the builder operates on each cell of that column.
- To display the contents of the Loop variable, use a Dojo Tree builder.
- Once you have created a table, use the Dynamic Table Column builder to modify the look and content of an existing column in the table. If you do not use the Dynamic Table Column builder, the headers are picked up by the values in the Source Data field.
Dynamic Table builder inputs
This topic describes the Dynamic Table builder inputs.
Accessing table data
You can access table data when a user performs an action on the page by getting the values from a set of variables that the Dynamic Table builder adds to the WebApp.
Using loop variables
The Dynamic Table builder provides a set of loop variables for other builders to use to define builders within a table. The table loop variable is significant only during table processing time. It is not used in any other setting. Do not use table loop variables if the builder will not be placed within a table.
The data in the TableMetadata variable is static and you can always access it using an indirect reference or with a call to the webAppAcccess.getVariables().getXml("TableMetadata")
Using the Dynamic Table builder
Use the Dynamic Table builder to give a set of tabular data a visual representation in an HTML page.
Creating a custom table HTML page
By default, the Dynamic Table builder can display at most 10 columns. You can increase the number of columns displayed by modifying the default table HTML page (factory/pages/table_page.htm
) or you can create a new one.
Parent topic: Builder help
About using the builder call editor
Data Page builder
Working with a database
Dojo Tree builder
Locating control builder calls on pages