4.7. Form Modeler
- Form Modeling WYSIWYG UI for forms
- Form autogeneration from data model / Java objects
- Data binding for Java objects
- Formula and expressions
- Customized forms layouts
- Forms embedding

Figure 4.8. Adding fields by origin

Figure 4.9. Adding classes from data model
4.7.1. Creating a Form in Form Modeler
- In Business Central, go to → .
- On the perspective menu, select → .
- In the dialog that opens, fill out the name of your form in and click .
button to place the field types onto the canvas, where you can modify them. To modify the field types, use the icons that display when you place the cursor over a field: , , , , , or . The icons enable you to change the order of the fields in the form, group the fields, or clear and edit their content.

Figure 4.10. New form
4.7.2. Opening an Existing Form in Form Modeler

Figure 4.11. Opening an Existing Form
4.7.3. Setting Properties of a Form Field in Form Modeler
- In Form Modeler, select the tab and click the arrow
button to the right of a field type. The field type is added to the canvas.
- On the canvas, place the cursor on the field and click the edit
icon.
- In the dialog that opens on the right, set the form field properties and click at the bottom of the dialog.
4.7.4. Configuring a Process in Form Modeler
- Create process variables to hold values entered into forms. Variables can be simple (e.g. 'string') or complex. You can define complex variables using Data Modeler, or create them in any Java integrated development environment (Java IDE) as regular plain Java objects.
- Declare the process variables in the 'variables definition' property.
- Determine which variables you want to set as input parameters for the task, which shall receive response from the form, and establish mappings by setting the 'DataInputSet', 'DataOutputSet', and 'Assignments' properties for any human task. To do so, use the Editor for Data Input, Editor for Data Output, and Editor for Data Assignment.
Example 4.1. Defining a Variable using Data Modeler

4.7.5. Generating Forms from Task Definitions

Figure 4.12. Generating Forms Automatically
) located above a user task.

Figure 4.13.
formName-taskform in the same package as the process, the human task engine will use the form to display and capture information entered by the user. If you create a form named ProcessId-task, the application will use it as the initial form when starting the process.
4.7.6. Editing Forms
move fields, add new fields, configure fields, or set values for object properties.
4.7.7. Moving a Field in Form Modeler

Figure 4.14. Moving a Form Field in Form Modeler

Figure 4.15. Destination Areas to Move a Field
4.7.8. Adding New Fields to a Form

Figure 4.16. Adding Fields by Origin
Input binding expression and Output binding expression properties, so when the form is submitted, the values in the fields are stored in the corresponding data origin. The tab allows you to add fields to the form from the fields type palette of the Form Modeler. The fields do not store their value for any data origin until they have correct configuration of the Input binding expression and Output binding expression properties.

Figure 4.17. Adding Fields by Type
simple types are used to represent simple properties like texts, numeric values, or dates. The following table presents a complete list of supported simple field types:

Figure 4.18. Supported Simple Field Types
Complex field types are designed for work with properties that are not basic types but Java objects. To use these field types, it is necessary to create extra forms in order to display and write values to the specified Java objects.

Figure 4.19. Supported Complex Field Types
Decorators are a kind of field types that does not store data in the object displayed in the form. You can use them for decorative purposes.

Figure 4.20. Supported Decorators
4.7.9. Configuring Fields of a Form
Field Type- can change the field type to other compatible field types.Field Name- is used as an identifier in calculating of formulas.Label- the text that is displayed as a field label.Error Message- a message displayed when there is a problem with a field, for example in validation.Label CCS Class- allows you to enter a class css to apply in label visualization.Label CCS Style- allows you to directly enter the style to be applied to the label.Help Text- introduced text displayed as an alternative attribute to help the user in data introduction.Style Class- allows you to enter a class CSS to be applied in field visualization.CSS Style- allows you to directly enter the style to be applied to the label.Read Only- a field with this property allows reading only, no write access.Input Binding Expression- defines the link between the field and the process task input variable. In runtime, it is used to set the field value to the task input variable data.Output Binding Expression- defines the link between the field and the process task output variable. In runtime, it is used to set the task output variable.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.