Scout/Concepts/FormData

From Eclipsepedia

< Scout‎ | Concepts
Revision as of 03:55, 15 October 2013 by Jbr.bsiag.com (Talk | contribs)

Jump to: navigation, search


Scout
Wiki Home
Website
DownloadGit
Community
ForumsBlogTwitter
Bugzilla
Bugzilla


FormData is the standard data transfert object for forms between the client Plug-In and the server.

  • extends: C obj.pngAbstractFormData

Contents

Description

Note.png
TODO
Add a description

Contains a transfert 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

Note.png
TODO
Add a description and example of how to access to a value, how to know if a value was set


Generation

SDK Support

Note.png
TODO
Add a screenshot


FormData anotation

  • A obj.pngFormData FormData annotation
    • Is needed on the form Class

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.

See Also