Jump to: navigation, search

Scout/Concepts/Form Handler

< Scout‎ | Concepts
Revision as of 11:07, 3 November 2011 by Claudio.guglielmo.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Scout
Wiki Home
Website
DownloadGit
Community
ForumsBlogTwitter
Bugzilla
Bugzilla


Form Handler specify how a form should be started.

  • implements: I obj.pngIFormHandler
  • extends: C obj.pngAbstractFormHandler

Description

Note.png
TODO
Add a description


Events

Defined with execXxxxxx() methods.

  • Load: Load the data into the form, typically calling a ProcessService (with prepareCreate(), load()...) to get the FormData and using the the importFormData(FormData) function on the Form.
  • PostLoad: This event occurs right after load. This event is suitable if you want select some rows in a TableField or touch the form (to force the store mechanism).
  • CheckField: During the validation of a form this is the first method being called. At this point it is possible to block the validation process by returning false.
  • Validate: During the validation of a form, if the CheckField events (on the Form and on the FormHandler) return true, and every Field do not have any error status, this event occurs. It provides another possibility to block the validation process, knowing that every field contains a valid input (all mandatory fields are set for example). This point is suitable to compute some logic using the field inputs and considering the form as one entity.
  • Store: Store the form content, typically calling a ProcessService (with create(), store()...).

See Also