Enhancement
Critical
Major
Detail
Detail
Creation of dialogs with arbitrary input fields in the context of a model element (e.g. component model, selection, etc.). Ability to annotate customizations to these fields using the component model. Evaluation of user input in a transaction function.
Application
Dialog template "Transaction with input":
The form is defined using a regular model type (with optional form annotation). This model type can contain arbitrary annotations. When the form is created, a transient form object is created for the selected model type. There are two script fields, one for initializing the form, the other for the actual transaction. The initialization script can prepopulate the form with values by setting values on the form object. In doing so, it can refer to the context model. The transaction function can access both the form object and the context model. At the time the transaction runs, the form object contains the input that the user has made in the form.
Test
- /com.top_logic.demo/src/test/com/top_logic/demo/scripted/layout/transaction/TestCustomTransaction.script.xml