Skip to main content
Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Form Handler"

Line 3: Line 3:
Form Handler specify how a {{ScoutLink|Concepts|Form|form}} should be started.
Form Handler specify how a {{ScoutLink|Concepts|Form|form}} should be started.
* implements: {{ScoutJavadoc|<TODO:NameOfTheInterface>|I}}
* implements: {{ScoutJavadoc|IFormHandler|I}}
* extends: {{ScoutJavadoc|<TODO:NameOfTheAbstractClass>|C}}
* extends: {{ScoutJavadoc|AbstractFormHandler|C}}
== Description ==
== Description ==
Line 20: Line 20:
== See Also ==
== See Also ==
* {{ScoutLink|Concepts|Client_Plug-In|Client Plug-In}}
* {{ScoutLink|Concepts|Form|Form}}
* {{ScoutLink|Concepts|Form|Form}}

Revision as of 15:17, 2 November 2011

Wiki Home

Form Handler specify how a form should be started.

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


Add a description


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

Back to the top