PhixFlow Help

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 3 Current »

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.

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

FieldInput/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.

                  

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

Form icons

The form provides the standard form icons.

See Also

Forms

  • No labels