Java Syntax Field and Screen Tip Formatting Options

You can use Java pattern syntax to configure the way data displays in value fields and in screen tips. You can specify different formatting for normal conditions and for alert conditions. You can also add text.

This feature is used in the Chart Component and in the State Model Component.

Most display characteristics are configured using simple font and color choices. However for certain data types (and for other situations), the user interface also allows you to use Java syntax for MessageFormat patterns to achieve the desired result. Refer to Java documentation for details.

See Java MessageFormat patterns documentation for details. The only difference between Java patterns and TIBCO BusinessEvents Views is that in TIBCO BusinessEvents Views, you specify field names instead of argument indexes, as a convenience:

{ MetricFieldName }

You can format the field value by specifying a type and style:

{ MetricFieldName, FormatType, FormatStyle}

You can use any metric field, not just those used in the data source query. However, tracking fields cannot be used.

You can use literal text as well as field names and formats. Text is most commonly used in screen tips, but it can be used in value fields too, as needed.

Value Field Format Option

For value fields (but not screen tips), you can select a data formatting option from the Format field drop-down list. The list displays appropriate options for the value field’s datatype. For example, for a Long field, you can choose Integer, Currency, or Percent.

If the options shown do not meet your needs, select Pattern from the drop-down list and define the pattern manually, in the Pattern text box.