Form specification files / Form item attributes |
The JUSTIFY attribute defines the justification of the content of a field and the alignment of table column headers.
JUSTIFY = { LEFT | CENTER | RIGHT }
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.
If the field has the focus in a dialog allowing user input, the data alignment rules are front-end specific, and follow either JUSTIFY or the data type of the field variable. When the current dialog is a CONSTRUCT, criteria input is always left-aligned.
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.
With mobile front-ends, tables are rendered as list views with a maximum of two visible columns. By default, the main and the comment columns are displayed vertically in each row (i.e. main is on top of the comment). Use JUSTIFY=RIGHT for the second column, in order to display columns side by side. Note that numeric fields are by default right justified and thus do not need that attribute to be set.
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;