JUSTIFY attribute

The JUSTIFY attribute defines the justification of the content of a field and the alignment of table column headers.

Syntax

JUSTIFY = { LEFT | CENTER | RIGHT }

Usage

With the JUSTIFY attribute, you specify the justification of the content of a field as LEFT, CENTER or RIGHT when the field is in display state.

This attribute is ignored for input (i.e. when the field has the focus); only the default data justification rule applies when a field is in input state. The default data justification depends on the dialog type, the field data type and the FORMAT attribute. For example, a numeric field value is right aligned, while a string field is left aligned. The type of dialog also defines the default justification: In a CONSTRUCT, all input fields are left aligned, for search criteria input.

The JUSTIFY attribute can be used with all form item types: Additionally to the field content/data alignment, JUSTIFY defines the alignment of table column headers indirectly (i.e. table column header follows the alignment of field data). However, column header alignment in tables may not be enabled by default; Check the headerAlignment presentation style attribute for the Table class.

You can also specify the text alignment of static form labels with the JUSTIFY attribute.

LABEL t01: TEXT="Hello!", JUSTIFY=RIGHT;
EDIT f01 = order.value, JUSTIFY=CENTER;