Form request

A typical request of the form in DWKIT contains two parameters

  • formName - the name of the form
  • parameters - dictionary with all parameters from request

Next chaining occurs on the web server and causes the generation of the form:

  1. Verification that the current user has the right to open the form. If not - then the request processing is interrupted, and "Access denied" form returns.
  2. Calling of the dispatcher function which has been bonded with form. In this function is possible to write any business logic to change formName patrameter.
  3. Getting from blocks from database.
  4. Calling of the form handler function which has been bonded with form. In this function is possible to write any business logic to add additional parameters into parameters dictionary and fill VisibilitySettings object to change visibility/read only settings of attributes of the data model.
  5. Occurs building of the parent form, the code of the parent form added before the code of the current form.
  6. All parameters in blocks of the form starting with '@' replaced by values from parameters dictionary.
  7. All parameters which was not replaced on previous step is removed from the code of the form.
  8. Occurs parsing of all elements in the code of the form. Occurs calling of EXTJS objects generators in which these parameters are passed. elements is replaced on generated EXTJS code.
  9. Generated form is returned to the client.

Form request