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.
Build dynamic labels and messages using component properties.
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.
%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.
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:
This illustrates the string operation in the browser; it is not a Niagara BFormat interpreter.
Identify the evaluation context, test multiple names and missing properties, and check operator access. Avoid exposing sensitive data in dynamic labels.
Examples are illustrative. Confirm equipment instructions, installed software version and approved site procedures before applying settings to live plant.