DesignStyle 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.

To style a table using a business rule, perform the following steps:

  1. In Application Design , create and save a new business rule that adds the applicable values (or "styles") to the appropriate data map entries (or "properties"). For more information, see Create a Business Rule in Configurator. For property keys and values, see Columns and Table Rules.

    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.

  2. Open the form with the table and click the table.
  3. 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

  4. 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.
  5. View the styled table in Applications . For more information, see View a Table.