Static text

The "Static text" application element is one of the basic controls and is purely a view element. It can be used, for example, for labeling input controls, as in the figure above for the "Title" input field. The "Static text" element cannot be linked to a data field. The text displayed in the element, which can also be interpreted as HTML, is specified in the element's properties dialog. The "Static text" element can also be used for programming.

The "Static text" element can be found in the "Applications" module in the "Elements" area. A new element can be created by positioning it on the workspace from here using drag & drop.

Further information on creating elements can be found here.

The Element Properties dialog opens automatically when a new element is created. The properties dialog of an existing element can be opened by double-clicking on the element on the workspace, via the "Properties" context menu or via the "Edit / Properties" main menu if the "Static text" element is selected on the workspace.

General

Title

Text can be entered here - including multi-line text - which is then displayed in the element in the browser. HTML, Velocity or JavaScript source text is interpreted accordingly if this is set in the options.

You can find out how to use language constants as titles here.

If you use a language constant as the title here, no further settings need to be made on the "Options" tab.

Static text element in calendar and resource element

In calendar and resource elements, the "Static text" element is used to display the title. When you open the properties dialog for the title, the calendar or resource element is entered in the "Calendar" selection list. The title is dynamically generated depending on which view is currently selected by the user (e.g. November 2022 in the month view or Monday, Sept. 29, 2022 in the day view).

Options

If you have set on the "General" tab that a language constant is to be used as the title, no further settings are required here in the options. A static title has the following settings:

Format

HTML/Text

In the "HTML" and "Text" formats, the text is displayed in the selected language when the language is switched. With the "HTML" option, the contained source text is interpreted accordingly.

Programming, only default language

This setting is used to implement JavaScript or Velocity script that is entered in the static text on the "General" tab. The "Static text" element continues to display the script in the form in which it was entered when the portal is switched to another language. Accordingly, switching between languages does not take place here.

Programming, language dependent

Here too, JavaScript or Velocity script can be stored in multiple languages on the "General" tab. It is then processed using this setting, depending on the portal language.

Column presentation

All information on this topic can be found here.