My FNZ Studio Version

Screen-Driven Model

Latest Update: 08.06.2020 | Margherita Taffarel
Documentation
2024
2023
2022.2
2022.1
11
10

1 Introduction

Controls are Screen Components used to display and change data on the screen. They are the primary Components with which the end user interacts.
These Screen Components can be bound to Properties in the Data Model, and Converters and Validators can be defined on them.

This is a list of Control Screen Components (the list does not include deprecated Screen Components):

All deprecated Screen Components are listed in the Screen Components: Deprecated Components article.

2 Control Component Properties

2.1 Binding

Control Screen Components can be bound to a variable in the Data Model. The binding 'tells' the Control where to obtain the value to display, and where to store the value entered by the user. The value is saved when the Screen data is sent back to the server.
A Control without a binding cannot display any value and ant entered data cannot be saved.
For an in-depth explanation on when and how Binding Expressions get evaluated, see the Screen Life Cycle section.

When a Control has a binding, a (b) icon is displayed next to the component name.
Binding_example.png

Binding Expression examples are:

$address
$person.lastName
$relation.Accounts[1].Number
$user.preferences['language']
$client.contracts[$c].invoice[$i].dueDate

A Binding Expression usually is a data path starting with a variable. Single variables can be used as well as complex Expression Scripts. It is important that the Binding Expression evaluates to a so-called 'Pointer to a Storage Area', that is a 'place' where actual data can be stored and read from. Therefore, you can have Binding Expressions of the following form:

IF($account.type == 'named', $account.name, $account.number)

Binding Expressions must evaluate to a Data Property of primitive Data Type String, Integer, Date or Boolean, since complex Data Types based on Data Classes cannot be displayed in simple input controls like Text Fields or Dropdown Lists. However, it is possible to bind a Control to a property of a complex Data Type or even of a native Java type. In such a case, a custom Converter has to be specified to convert the Control input value into the model value and vice versa.
For further information, see the Converters section.

2.1.1 Changing a Component Binding

There are two different ways to bind a Data Property to a Component:

  1. Enter the binding path into the Component Binding text field (Properties tab), or use the Expression Editor.
  2. On the left of the Screen Editor you find a list of Variables. They are split into Inherited variables and Local variables:
    • Inherited variables are variables defined in a Business Object that uses the current Screen. For example, if you have a Process that includes the currently open Screen, and that Process has a variable named person, that variable is displayed in the Inherited list. To use these variables, you need to define them in the current Screen.
    • Local variables list shows a list of variables specified in the current Screen Variables tab.
      In order to bind one of these variables to a component, simply drag the variable. An arrow is displayed, and all the 'eligible' components become active. Move your cursor to the component you want to bind the variable to. When the pointer reaches the component, release the mouse button. See the Component Binding property to double-check the new binding.

Note: If you use the second method to create bindings, bindings that include properties that have a collection type other than Single Element need to be edited manually. For Named Collections, the editor assumes that you always intend to use the entry called 'name', whereas for Indexed Collections, the editor guesses that you intend to use the entry at index $i. You probably want to change these two values.

As an example, an automatically generated binding to a property whose path contains both named and indexed collections looks like this by default:

$named['name'].indexed[$i].nationality

2.2 Input Value and Model Value

A Control Screen Component has two values:

  • The input value
    The input value is the text that the user enters into a Text Field, a Text Area or a similar Control. For Dropdown Lists or Radiobutton Lists, the input value is the id of the option selected by the user. In the Workspace HTML interface, all values are displayed and entered as texts. No matter what kind of data is entered (dates, numbers, currencies etc.), all Controls receive their input value in text format.
  • The model value
    The model value, on the other hand, is the data object that is stored in the Data Model. The values in the Data Model are not stored as plain text (except for Data Properties of type String), but as instances of Data Classes or Data Types.

A Converter is used to convert between the input value and the model value.

© 2026 Appway AG. All Rights Reserved