Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Formatting rules are used to determine when a style should be applied to an object. For example, highlighting a form field with a missing entry or changing an icon based on the selected company's industry sector.

For information about all the available options see Formatting Rule

All Formatting Rules perform a logic check that if it returns True the shared style will be applied.

Example: Cell

In this example we will set the colour of a cell in a grid where the value is null as illustrated below:


  1. Select the column header and its properties open.
  2. In the Formatting Rule section click  Add New.
  3. In the Rule Expression, set the criteria that if it returns true, the selected style will apply. In our example we want a style to be applied when the Web field is empty. To achieve this we enter:
    1. _current.Web == _NULL



      sdcc


  • No labels