Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Scout/Concepts/FormData"
Dev.jmini.fr (Talk | contribs) (→FormData anotation: Remove reference to CREATE EXTERNAL (depreciated)) |
(→Structure of a FormData) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ScoutPage|cat= | + | {{ScoutPage|cat=Shared}} |
− | FormData is the standard data | + | FormData is the standard data transfer object for {{ScoutLink|Concepts|Form|forms}} between the {{ScoutLink|Concepts|Client Plug-In|client Plug-In}} and the {{ScoutLink|Concepts|Server Plug-In|server}}. |
* extends: {{ScoutJavadoc|AbstractFormData|C}} | * extends: {{ScoutJavadoc|AbstractFormData|C}} | ||
Line 7: | Line 7: | ||
== Description == | == Description == | ||
{{note|TODO|Add a description}} | {{note|TODO|Add a description}} | ||
− | Contains a | + | Contains a transfer object for each {{ScoutLink|Concepts|Field|field}} and each {{ScoutLink|Concepts|Variable|variable}} of a {{ScoutLink|Concepts|Form|form}}. |
=== Usage === | === Usage === | ||
Line 32: | Line 32: | ||
== Structure of a FormData == | == Structure of a FormData == | ||
− | {{ | + | The FormData depends from the {{ScoutLink|Concepts|Form}} it contains the data. The SDK generate: |
+ | * For each {{ScoutLink|Concepts|ValueField}} a <tt>AbstractValueFieldData<T></tt> is generated. | ||
+ | * For each {{ScoutLink|Concepts|TableField}} a {{ScoutLink|Concepts|TableData}} is generated. | ||
+ | * For each form-variable an <tt>AbstractPropertyData<T></tt> | ||
+ | The inner-class structure from the composite field (like groupboxes) get lost, unless Group-Box templates are used. | ||
+ | |||
+ | The value fields properties (<tt>getConfiguredMandatory()</tt>, <tt>getConfiguredMaxValue()</tt>, <tt>getConfiguredMaxLength()</tt>...) are mapped to <tt>ValidationRules</tt> conatained in the formData. Those rules are used to redo the basic UI client-side validations on the server. | ||
== See Also == | == See Also == |
Revision as of 17:23, 12 September 2014
The Scout documentation has been moved to https://eclipsescout.github.io/.
FormData is the standard data transfer object for The Scout documentation has been moved to https://eclipsescout.github.io/. between the The Scout documentation has been moved to https://eclipsescout.github.io/. and the The Scout documentation has been moved to https://eclipsescout.github.io/..
- extends: The Scout documentation has been moved to https://eclipsescout.github.io/.
Contents
Description
Contains a transfer object for each The Scout documentation has been moved to https://eclipsescout.github.io/. and each The Scout documentation has been moved to https://eclipsescout.github.io/. of a The Scout documentation has been moved to https://eclipsescout.github.io/..
Usage
- Used as parameter of the
prepareCreate(..)
,create(..)
,load(..)
,store(..)
functions in the The Scout documentation has been moved to https://eclipsescout.github.io/..
- Importation in The Scout documentation has been moved to https://eclipsescout.github.io/.: The Scout documentation has been moved to https://eclipsescout.github.io/. and The Scout documentation has been moved to https://eclipsescout.github.io/. events of The Scout documentation has been moved to https://eclipsescout.github.io/.:
-
exportFormData()
- service call (depending of the action exectuted with the The Scout documentation has been moved to https://eclipsescout.github.io/.)
-
importFormData()
-
Access
Generation
SDK Support
- Generation of FormData with the The Scout documentation has been moved to https://eclipsescout.github.io/.
FormData anotation
- The Scout documentation has been moved to https://eclipsescout.github.io/. FormData annotation
- Is needed on the form Class
Structure of a FormData
The FormData depends from the The Scout documentation has been moved to https://eclipsescout.github.io/. it contains the data. The SDK generate:
- For each The Scout documentation has been moved to https://eclipsescout.github.io/. a AbstractValueFieldData<T> is generated.
- For each The Scout documentation has been moved to https://eclipsescout.github.io/. a The Scout documentation has been moved to https://eclipsescout.github.io/. 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.
See Also
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.