Versions Compared

Key

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

A Formatting rule allows you to specify an expression which evaluated can apply the selected style to the parent object. It allows to apply styles conditionally, depending on current values displayed on the screen.

A Formatting Rule can be assigned to a Stream View Attribute or to a Layout Component. When assigned to a Layout Template, all Layout Components created from the Template will have a copy of the Formatting Rule  assigned.

Insert excerpt
_standard_settings
_standard_settings
nopaneltrue

For each Formatting Rule, the following settings are configured:

FieldDescription
Basic Settings
Rule Expression

Expression to be evaluated on order to determine should the Style be applied. This expression takes PhixfFlow PhixFlow Internal Variables including _current, _field, _itemNumber and _this.

See examples below.

StyleStyle to be applied when the Rule Expression evaluates to true.
OrderOrder of the Rule Expression.
EnabledFlag showing is the Rule Expression enabled.
Stop If TrueFlag showing if other rules shouldn't be applied if the current Rule applies.
Description
DescriptionDescription of this Formatting Rule.

...

Examples

Field
:
Input/Value
Rule Expression_field.value == "OK"
StyleBackgroundColour-LightGreen
Enabledtrue

Creating the above configuration record for the View Attribute "Status Type" will produce the following result on the view.

                  

Form icons

The form provides the standard form icons.

See Also

Forms

The same result above could also be produced by the following configuration on Stream View Attribute "Status Type", which uses the value of another attribute "Status Summary" on the current record.

FieldInput/Value
Rule Expression_current.StatusSummary=="Validation Passed"
StyleBackgroundColour-LightGreen
Enabledtrue