DesignStyle a Button

You can style a button using the options in the Home tab. However, if you have several buttons in Loftware Enterprise SP and you want to quickly apply the same style to multiple buttons, you can define the button style using a business rule and then apply those styles to a button using the Style Data Ref property.

Note: Styles defined by a Style Data Ref override those configured in the Properties pane.

To style a button 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.
  2. Open the form with the button and select the button.
  3. In the Properties pane, for the Style data ref property, enter the location in the data map from which the button obtains styling data as defined in your business rule.

    Example

    /MyStyles

  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. Open or create an application and add the form to the application.
  6. View the styled button on the application in Applications .