Special properties are used to specify what logic should be generated
for a form and how the form should behave during the various states (DISPLAY, MODIFY, ADD, SEARCH).
Mobile forms
This section includes topics on working with forms for mobile apps.
Enable and disable CRUD logic
Form functionality properties (canDisplay, canAdd, canModify, canDelete, canSearch, canEmpty) can be set on each record of a form to specify whether the program logic of display, add, update, delete, search and/or display empty should be generated. Generated functionality can be disabled on a relation to the form in the BA diagram.
Form behavior in CRUD states
The UI Settings properties specify the initial and default state of the selected form as well as the behavior of the form during each state (DISPLAY, MODIFY, ADD, and SEARCH). These settings can be set on the form entity in the BA diagram, but overwritten by a relation to the form.
Data refresh
Data refresh behavior is specified with the Data Refresh property on the relation between two forms. If the source form is in DISPLAY mode and opens a destination form, when the destination form closes, the data displayed in the source form refreshes.
Control the row position in form When a form is opened from another form, the current position is always set to the first row. With positioning, you can control the row that is preselected when the form is opened. The Position, Source Field property on the relation to the form controls which row will be displayed when the form is opened.
Field activation
An active field is one that can be input by the user. Field activation occurs when the application is in an edit mode (MODIFY or ADD modes).
Define queries and data order
Joins between tables referenced in the form are set up in the query property of the business record.
Lookup fields
A lookup field is a field linked to another one inside a record. Lookup fields contain a value that is retrieved from a reference table instead of being input by a user.
Add buttons to form
If you add a widget to your form that can trigger an action, such as a Button, you can associate an action from the generated program to the widget.
Add formonly (nondatabase) fields to a form
Formonly fields are added by creating a non database field and making the record inactive. You must supply the business logic for the formonly field - it is not generated.
Master-detail forms
A Genero application can display a form that contains a master-detail relationship between two tables.