Scout/Concepts/FormData
Scout |
Wiki Home |
Website |
Download • Git |
Community |
Forums • Blog • Twitter • G+ |
Bugzilla |
Bugzilla |
FormData is the standard data transfer object for forms between the client Plug-In and the server.
Contents
Description
Contains a transfer object for each field and each variable of a form.
Usage
- Used as parameter of the
prepareCreate(..)
,create(..)
,load(..)
,store(..)
functions in the process service.
- Importation in Form: Load and Store events of FormHandler:
-
exportFormData()
- service call (depending of the action exectuted with the ProcessService)
-
importFormData()
-
Access
Generation
SDK Support
- Generation of FormData with the Explorer View
FormData anotation
Structure of a FormData
The FormData depends from the Form it contains the data. The SDK generate:
- For each ValueField a AbstractValueFieldData<T> is generated.
- For each TableField a TableData is generated.
- For each form-variable an AbstractPropertyData<T>
The inner-class structure from the composite field (like groupboxes) get lost, unless Group-Box templates are used.
The value fields properties (getConfiguredMandatory(), getConfiguredMaxValue(), getConfiguredMaxLength()...) are mapped to ValidationRules conatained in the formData. Those rules are used to redo the basic UI client-side validations on the server.