BMS Logic Academy – Building Logic One Block At A Time
Knowledge centre / Niagara / IQVision

Niagara BFormat expressions

Build dynamic labels and messages using component properties.

BFormat versus BQL

BFormat substitutes component-context values into text. BQL finds a collection of records. BFormat is useful for point labels, alarms and reusable graphics, but the evaluation context must be correct.

Examples

%displayName%
%parent.displayName%
%out%

These are starting examples for a point display name, its parent display name and output representation. Test in the target context; property resolution and output formatting vary.

Removing a naming prefix

A common requirement is displaying HoldingArea instead of 02_HoldingArea. A fixed prefix can be removed using a supported substring operation where available. Do not hardcode an end index; names vary in length. If unsupported, use a separate display name or tested derived string.

Three-character prefix removal: HoldingArea

This illustrates the string operation in the browser; it is not a Niagara BFormat interpreter.

Commissioning

Identify the evaluation context, test multiple names and missing properties, and check operator access. Avoid exposing sensitive data in dynamic labels.

Further learning

Back to Niagara / IQVision

Examples are illustrative. Confirm equipment instructions, installed software version and approved site procedures before applying settings to live plant.