Field Layout

Property that specifies how the field's data is formatted for display. The value can be a comma-separated list of shorthand codes, or a reference to a modeled field layout.

Code1{,CodeN} | @LIB::ModeledFieldLayout

Value Description
"" The layout used depends on the data type. Some data types have a default display format, which may not be the most appropriate one. For more information, see Default Packing Codes and Display Formats per Data Type.
Code1{,CodeN} Comma-separated string of display codes.

For example: RGT,DIS(dd-MMM-yyyy)

ModeledFieldLayout

Reference to a modeled field layout.

For example: @LIB::TELCODE

Layout Codes

Codes for Field Layout
Code Description
DIS(Format)

Display format. For more information, see Display Formats.

CTR Center alignment
DEC Decimal alignment
LFT Left alignment
RGT Right alignment
LTR Left to right reading direction
RTL Right to Left reading direction
SEP(c) Use a subfield separator c
NAV No active field video (not applicable in web applications)
Character mode formats:
WID(n) Line width of n characters
BLI Blinking
NBL Not blinking
BOR Borderlines
BRI Bright
NBR Not bright
INV Inverse video
NIN Not inverse video
UND Underline
NUN Not underline

Description

The formatting specified by the layout occurs after data has been retrieved. It does not affect the way the data is stored, which is determined by the Database Interface.

Form components support all display formats; dynamic server pages support a subset of formats.

Tip: Instead of defining the field layout individually for each field, it can be useful to create modeled field layouts, These can then be reused in field definitions, component variables, and global variables.

Applies To

Related Topics