Label Display Style Options

The Label display style displays a database field label.

Label display style options.

 

Options

Description

Use this text for NULL database field values

Specifies the text to be displayed or inserted into the database if the underlying database field has a “null” value (no value).

HTML encode white space (no wrapping)

Respects the white space, carriage return and line feed characters in the HTML.  White space is preserved.  For example, if you have 10 contiguous spaces, 10 spaces will be output in the field.

Save field value to database

Sets the "SaveData=True" pass-through attribute value so that any automatically initialized value is saved to the database.  (Values in Labels and Literals are not automatically saved to the database, unlike display styles normally used for data input, such as text boxes and list boxes).

You can initialize field values using the Set Initial Value To properties.  See FieldValue Initial Value Properties for details.

Display text as

Specifies how to display the text contained in the field.

HTML source

Display the text without rendering (executing) HTML tags.  Any embedded HTML tags are displayed as ‘HTML source’.

Rich text

Display the text as rich text.  Embedded HTML tags are rendered.

Note that rich text is displayed only if the text can be fully displayed.  The amount of text in the field, including embedded HTML tags, must be less than the FieldMaxLength pass-through attribute value.

When text is truncated, it is appended with ellipses and is shown as HTML encoded using the default browser font.  However if the text fits completely into the cell it will be shown as a rich text.

Default

Use the Application Generation Options setting.

Handling rich text display

When displaying fields as ‘rich text’ it is common for records with less text to be displayed as rich text and for records with more text to be truncated and displayed in the browser font because there isn’t sufficient room to display them as rich text.  This can lead to a situation where the fonts in certain table cells differ markedly.  Most likely your field is set to show text as Default, allowing the Application Generation Options to decide how to display the text.  If set to Display text as ‘Rich text’ and the threshold is low enough that this field qualifies to use rich text, than any cell in this column where text fits completely will be shown as a rich text.

To show all text using the same font, you can do one of the following:

See Also

FieldValue Tag