Click to rate and give feedback    1 2 3 4 5
Concept Concept 10/12/2017
Products: Automation Server, AS-B, Enterprise Server, AS-P, Project Configuration Tool
Functionalities: Alarms
Product version: 1.9

Text Formatting

You can customize the presentation of decimals, value types, width, and alignment in a notification text or a notification report text.

Decimals

You can customize the presentation of the number of decimals using the following text formatting codes:

Code

Description

@(Value)

Displays 2 decimals

@(Value:%.1f)

Displays 1 decimal

@(Value:%.4f)

Displays 4 decimals

The default number of decimals displayed in a notification or notification report is two.

Value types

You can customize the presentation of the value types using the following text formatting codes:

Code

Description

t

Value type

s

String

f

Float

Width and alignment

You can customize the width and alignment of data in a notification or notification report using the following text formatting codes:

Code

Description

%wt

At least w wide, right aligned

%-wt

At least w wide, left aligned

%=wt

At least w wide, center aligned

%w.ct

At least w wide, right aligned, max c long

%-w.ct

At least w wide, left aligned, max c long

%=w.ct

At least w wide, center aligned, max c long

In this example, we have an alarm with the source '/Server/Alarm1' with a monitored value of 0.5.

This alarm has the source '/Server/Alarm1'

This alarm has the source '/Server/Alarm1'

Community Content

Product version

Language