Most Screen Components, as well as the Screen itself, have a set of Properties that change how the Component looks and behaves. If one or several Components are selected, these Components' Properties are shown. If no Component is selected, the Screen's properties are shown. To configure a Screen Component, click on it on the Screen editor.

Different Screen Components display different properties. The following tabs may be displayed:
The general properties displayed on the Properties tab depend on the selected component. For more information, see the documentation for each specific Screen Component.
Note on the HTML Id property. For some Screen Components (such as the text Field or Button) you may need to define an HTML Id in order to reference such components (e.g. through Screen Actions). Consider that this value must be unique in any HTML page. Non-unique HTML Ids in a page may cause unexpected behavior in your Screens.
Some component properties can hold either a static value or a dynamic value (that is, an Expression). Such properties have a special marker icon containing a 'c' to the left of the input control. You can click on this icon to switch between static and dynamic mode:
- In static mode, the Property's main input control is displayed (Text Field, Dropdown List or Text Area).
- In dynamic mode, an Expression Area is displayed (with an icon to start the Expression Editor).

Some examples of dynamic properties are:
- Property Text on the 'Label' Component
- Properties URL and Resource on the 'Image' Component
- Property Code on the 'Java Script Action' Action
Dynamic properties are usually evaluated at runtime when the Screen Component is rendered. Some property expressions are expected to return plain text while others are expected to return special values (e.g. an id of a certain type of Business Object).
The Data Source Tab is displayed for components displaying a list of options, such as the Checkbox List, the Dropdown List, the Multiple Selection Field, and the Radiobutton List Screen Components.
Some Control Screen Components give the user a number of options to choose from. In order to know what options such components have to display, a Data Source has to be specified. A Data Source basically returns a list of options where every option has an ID and a Label:
- The ID is the internal value used to identify the option, therefore it should be unique within a Data Source. The ID is also used as an input value for the component and is saved in the Data Model if the user selects the option.
- The Label is the display value presented to the user on the Screen. It may contain Language Label references in the form
[LABEL:<packageId>:<labelId>].
In order to assign a Data Source to a Screen Component, follow these steps:
- Select a Screen Component that requires a Data Source.
- Click on the Data Source tab.
- From the dropdown list, select the desired type of Data Source: Static, Catalog, Expression or User.
- Enter the properties for the selected Data Source type.
A Static Data Source is a simple list of IDs and labels, saved directly within the Screen Component. The order of options in the Data Source reflects the order of options in the rendered Screen. Available properties are:
- ID – A text used to identify the selected option. This is the value that is saved in the Data Model.
The ID must be unique within a single Data Source.
- Label – The label to display in the list. The label is ordinary text and may contain Language Label references.
A Catalog Data Source is backed up by a Catalog Business Object. The order of the options in the Screen depends on the configuration of the Catalog.

Catalog Data Source properties are:
- Catalog – The Catalog used as a Data Source for the option list.
Consider that only only the Catalog Business Objects that are declared as visible in a Package can be selected. Moreover, the Package containing such Business Objects must have a declared a dependency on the current one. For more information on visibility and dependencies, see the
Packages article.
- Column – Select the Catalog column that you want to display e.g. on the dropdown list. For example, if you select the id column in the example below, your dropdown list or other component will display the currency ids (CHF, USD, and so on).
The values displayed in Column id are used as ids in the Data Source.

Expression Data Sources are the most powerful but also the most complex Data Sources. They are based on 3 Expressions: a Collection Expression, an ID Expression and a Label Expression:
- The Collection Expression is evaluated first and is expected to return a collection of objects: Accounts, Persons, Integers, Strings etc. Every object in the collection is "transformed" into an option.
- The ID Expression and the Label Expression are the used to calculate an id and a label from every object in the collection.
Expression Data Source properties are:
- Collection – The Collection Expression must evaluate to a collection of objects (Accounts, Persons, Strings etc.)
- Variable – The name of the implicit variable used to hold an object in a collection while evaluating the ID and Label Expression.
- ID – The ID Expression used to calculate an option id based on an object in a collection.
- Label – The label Expression used to calculate an option label based on an object in a collection.
If the collection returned from the Collection Expression contains null objects, these objects are omitted.
If the id Expression or the label Expression evaluates to null for a given object, no option is generated for this object.
While evaluating the id and label Expressions and generating options, the Expression Data Source maintains 2 implicit variables:
$index – holds a counter, starting at 1 and incremented for every object in the collection$id – holds the evaluation result of the id Expression, which may be useful when calculating the Label in the Label Expression
Example: The Data Class Account has a Property called persons of collection type Collection with Indexed Entries containing instances of the Data Class Person. The Data Class Person has Properties id, lastname and firstname (all of type String). The Screen contains a Variable Definition for the variable account of type Account.

Data Layout for Expression Data Source Example
The task is to create an Expression Data Source returning the ids and names of the persons in the account. Solution:
- Collection –
$account.persons - Variable –
$person - ID –
$person.id - Label –
CONCAT($person.firstname,' ',$person.lastname)
The order of the objects in the Collection determines the order of the options on the Screen.
This option can be used to populate the list with information about the users on the environment. You can select:
- Individual users
- Roles
- Groups
Most of the Screen Components that are visible in the rendered HTML screen have a Style property tab.
For Screen Components using legacy styling, you can style the component by selecting the styling property and its value (e.g. Font: Helvetica; Margin: 5 pixel) from the Common Styles dropdown list and then clicking the Add button. You can also edit the name and style fields directly.
With the introduction of Style Business Objects in Appway 7, you can perform a comprehensive styling of components and solutions removing the need to use custom CSS.
To be able to select a Style Business Object, the Use Legacy Styles check box must be deselected.
The Style tab properties are:
- Outer Spacing Top
- Outer Spacing Bottom
- Outer Spacing Right
- Outer Spacing Left
Note on spacing: When you apply the Style tab properties, you are defining the space among components at Screen level, e.g. the space that separates two or more Button components on the current screen. To define the space between the component itself and the border (e.g. a Button), you need to configure the Inner Spacing and Outer Spacing styling properties on the Style Business Object (in this case, the Button Style Business Object ) editor.
The Variable Assignment tab is available for the Template and Include Components.
Variable Assignments are used when other Screens are included in the current Screen. Since the included Screens may use a different set of variables (different Variable Definitions), the Variable Assignments can be used to assign values to the variables of the included Screen. See the documentation on Variable and Scopes for more details.
The Converter Tab is available for Control Screen Components.
A Converter is used to convert a Control's input value (a simple textual representation) into the model value (a complex data object) and vice versa. If conversion fails, this results in a converter error. An error message is displayed on the screen (similar to a validation error).
Sometimes, a special user-defined conversion is needed. In this case, an explicit Converter can be selected and assigned to the Control component. Only one Converter can be assigned to a Control at a time. All Components with a Converter display a 'C' icon next to their names. Click on the icon to go directly to the Component's Converter Properties.
Note: Converters can be used in combination with
Validators. When the two are combined, the Converter is applied first, converting the input
$value during the Update
phase. After conversion, the Validate phase takes place where the Validators are evaluated. This means that the Validators validate the converted value.
If a Conditional Validator is used, the type of the variable has to be changed to match the type selected as output for the Converter.
If the purpose of the component is to confirm that Conversion was successful, specify a Conditional Validator that checks if the converted
$value != null.
To assign a Converter to a Component, follow these steps:
- Select a Component that requires a Converter.
- Click on the Converter tab.
- From the dropdown list, select the desired type of Converter.
- Enter the properties for the selected Converter type.
The Converter Type dropdown list in the Converter tab allows you to select an Expression Converter. This is based on two Expressions:
- Input Expression – used to convert text entered by the user into an object to be stored in the Data Model.
- Output Expression – used to convert the object stored in the Data Model into a text that the Control can display on the Screen.
Expression Converter properties are:
- Input – Input Expression used to convert text into an object when the data in the Control has to be saved in the Data Model.
- Output – Output Expression used to convert the object in the Data Model into a text that he Control can display when the Screen is rendered.
- Variable – The implicit variable holding the value to convert.
Examples:
- The user wants to enter a number with a percent sign (e.g. '75%'). However, in the Data Model, the value should not get stored as a text but as a number of type
Double (0.75), so that rules can calculate with this value. The input Expression first has to strip off the percent sign, convert the value into an number and divide it by 100. The output Expression has to do the reverse action: Multiply the value by 100 and append a percent sign. - The user wants to enter dates without a year (e.g. '02.03.'). An ExpressionConverter could append and remove the current year automatically.
- A value entered by the user has to be rounded up automatically (useful for instance for currency values).
- A phone number is entered in a single Text Field, but should get parsed and stored as a complex Data Type implemented using a Data Class
Phone. The Data Class contains separate properties for country code, location code, number and extension. A custom Converter can be used to parse the input value and return a new Phone instance. In the other direction, the Converter can concatenate the property values read from the Phone instance into a single text to be displayed by the Text Field.
If a Control does not have a Converter assigned to it, the system automatically tries to select a predefined (built-in) Converter. The Binding Expression is evaluated and the Data Type of the referenced Data Property is used to select a Converter. If a Text Field has a Binding Expression of type $person.dateOfBirth and dateOfBirth is a Property of type Date, a Date Converter is selected to convert the user's input into a valid date object. The same converter is used if the Text Field needs to display the value. This time, the converter has to convert the date object in the Data Model into a text that the Text Field can display.
Some of these predefined Converters have special handlers for null or empty texts, or they have "side effects." Therefore, it is important to know their behavior.
The String Converter is selected if the Binding Expression evaluates to a Data Property of type String. This is the simplest Converter since it does not perform any actions: the input value submitted to the server is already a text and therefore no conversion has to be performed. This is the only Converter that keeps empty texts and null input values unchanged. All other built-in Converters usually convert empty texts either to null or to an other predefined model value.
The Boolean Converter is able to convert the input values true and false into the Boolean model values true and false. An empty text and null is converted to null by default. There is an exception to this rule: if a Checkbox is not selected, null is submitted to the server. The Boolean Converter checks if the submitted input value is coming from a Checkbox Component. If so, null is converted to false. Input values other than true, false, empty text or null result in an error.
When converting a model value into an input value, only instances of the Java Class java.lang.Boolean or null are allowed. Null is converted to null, which is interpreted as "not checked" by the Checkbox Component (because it's different from the text "true").
The Date Converter is able to detect different date formats and convert them safely into a date object. If the text does not match the known date formats, the Date Converter generates an error. An empty text or null is converted to null.
In order to generate an input value from the model value, only instances of the Java Class java.util.Date or null are allowed. The date value is converted using the default date format of type "short" defined in the system (usually "dd.MM.yyyy").
The Number Converters are selected if the Control is bound to a Data Property of a number type like Integer or Float. These Converters will check that the input value is within the allowed range of the Data Type. An empty text is converted to null.
By default, floating point numbers are rounded to 3 decimal digits when displayed in a text field. Use an expression converter to control and override the default number format.
The Validators tab is available for Control Screen Components.
Sometimes, Converters are not restrictive enough. There are different use cases: a number entered into a Text Field need to be checked to be in a specified range, the user must select at least one option from a Checkbox List, or a text entered into a Text Field must conform to a special format (e.g. a social security number).
In these situations, Validators can be attached to Controls. A Validator checks the value entered by the user and if the value is not valid, the user gets an error message (usually a red frame around the Control). A Control can have multiple Validators. If at least one Validator fails, the input value is considered "illegal".
Common Validator properties are:
- Message – Specify a text that is displayed to the user if the Validator detects an illegal value. The text may contain Language Labels.
Validation is performed AFTER conversion. Therefore, it is not the textual input value that is validated, but the converted model value.
All Components with Validators display a 'V' icon next to their names. Click on it to go directly to the Component's Validators.
The Mandatory Validator is the simplest type of Validator. It checks that the user has entered a value into the Control (or selected an option in case of a list). The Mandatory Validator requires no additional configuration.
You can determine how the Mandatory Validator treats entered white spaces using the
nm.workspace.validation.mandatory.ignoreWhiteSpacesAsInput configuration property. When this is set to true, white spaces are not regarded as input, i.e. the validator is triggered if a user enters only white spaces (the default valu is true).
The Condition Validator uses an Expression to validate the model value. The Expression is expected to return a Boolean value: true means that validation was successful (no error), false means that the model value is not valid.
Condition Validator properties are:
- Condition – An Expression that is expected to return true if the value is valid and false otherwise. The value can be accessed using the variable defined in the property Variable.
- Variable – The implicit variable holding the value to be checked.
Examples for Condition Validators:
- A text must have a length of at least 5 characters
LENGTH($value) >= 5 - A number must be between 0 and 100 (including the borders)
$value >= 0 and $value <= 100 - A text must start with an uppercase character that is followed by 3 to 6 digits
MATCH($value,'[A-Z][0-9]{3-6}')
In order to add a new Validator to a Control, follow these steps:
- Select a Control
- Click on the Validators property tab
- Scroll down to the bottom of the Validators tab content (if you need more space, you can drag the corner above the tabs to enlarge the tab's content)
- Select the desired Validator type
- Configure the selected Validator
- Click on Add Validator
Existing Validators can be changed or removed. To remove an existing Validator, do the following:
- Click on the round icon with a minus sign (-) inside it to remove a Validator. The icon can be found at the bottom right of each Validator.
To change an existing Validator, do this:
- Change the Validator's type on the Validator Type dropdown list, or change any of the options inside the other fields.
Various Screen Components are capable of starting Actions, such as opening a new Screen. Usually, these Actions are triggered by something the user does. This is called an Event. For example, the user clicks on a button (amouseclick Event), which triggers an Action such as the validation of the user's input.
A Component that can trigger Actions has a list of Events. Each Event has its own list of Actions triggered if the event occurs. In Studio, all the Components that have Actions display an 'A' next to their names. Click on it to go directly to the Actions tab and set the Component's Action properties.