1 Form

A form is a process workflow asking to enter fields to user and executing processes based on events.

Each form are defined by a set of fields and events executed before or after entering each field. This events are defined using JavaScript code and can be runned on client or at server.

Javascript variables created or changed at runtime are stored in the whole live of the form, and can be reused by other events later.

Field contents are also declared as Javascript variables and can be accessed or changed by Javascript code declared on events.

Label Description
form_name This is the form code. This code allows to execute the form or identify it in the menu
form_desc Form short description
form_comment Form long description
JS Client Initial Code Javascript code that will be executed in the client before showing form to customer. This code allows to define variables, set field content and retrieve or change Global variables
JS Form Server Rollback

This Javascript code is executed at the server when occurs any of the following events:

  1. When user press Ctrl-C to exit form.
  2. When user spends more than 1 minute to press any key.
  3. When connection is broken or users stops client terminal.

2 Form Fields

Label Description
field_order Fields are shown in the form following this order.
field_group N/A
field_name Field code . You can access field content value in Client Context by using a variable defined with same name as the field code. In Server Context, you'll receive a property in the fields object with this value.
field_type Defines field content type. Types available are:
  • S: String values
  • I: Integer values
  • F: Float point values
  • D: Date values
  • E: Expression values
field_scale In numeric type fields, this is the maximum number of decimals. In character type fields, this is the maximum size of the field.
field_noentry This field changes field to noentry. User cannot focus into this form field.
field_desc Short name of the field
field_title Long name of the field
field_required Content should be provided to field before user able to exiting.
field_exists_id Form short description
Field Before Client Code Javascript code that will be executed in the client context before focus entering a field.
Field Before Server Code Javascript code that will be executed in the server context before focus entering a field.
Field After Client Code Javascript code that will be executed in the client context after focus exiting a field.
Field After Server Code Javascript code that will be executed in the server context after focus exiting a field.