Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
namescreen
nopaneltrue

Overview

Coming soon...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 
    Insert excerpt
    _add
    _add
    nopaneltrue
    .
  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