Style a Table
You can style a table using the options in the Home tab and by configuring the properties for each column in the Columns and Table Rules pane. However, if you have several tables in Loftware Enterprise SP and you want to quickly apply the same styles to multiple tables, you can define the table styles using a business rule and then apply those styles to a table using the Style Data Ref property.
Note: Styles defined by a Style Data Ref override those configured in the Columns and Table Rules pane.

Styles can be defined using the following locations in the data map. If the same style is defined in both locations, the Style Data Ref is used. For property keys and values, see Columns and Table Rules.
Property Type | Location in Data Map |
Example |
---|---|---|
Table |
/{Style Data Ref}/{Key} |
/myTableStyle/alternatingItemColors |
Table |
/{Table Name}/{Key} |
/Table001/alternatingItemColors |
Columns |
/{Style Data Ref}/columns/{Key} |
/myTableStyle/columns/horizontalAlign |
Columns |
/{Table Name}/columns/{Column Name}/{Key} |
/Table0001/columns/Date/horizontalAlign |
To style a table using a business rule, perform the following steps:
- In Application Design
Tip: To apply these styles to more than one table, use the /{Style Data Ref}/{Key} and /{Style Data Ref}/columns/{Key} locations in the data map.
- Open the form with the table and click the table.
- In the Properties pane, for the Style data ref property, enter the location in the data map from which the columns obtain styling data as defined in your business rule.
Example
/myTableStyle
- Add a rule to the form to run the new styling business rule with the onLoad trigger event. For more information, see Add an Action or Rule.
- View the styled table in Applications