Documentation

Business Rules

The business rules script, or operation, contains routines and functionalities that alter the system's behavior, either at a general level or at a module-specific level.

In the case of rules for specific modules, these change as required and are not part of the system core. Regarding the general rules (js/siteup/global_rules), the system applies:

System Rules

This is responsible for executing the following actions supported by jquery.

  1. Create a capitalization function
  2. Define a function to display popup messages. These will be used by the elements contained in str_MESSAGES1.
    These messages will appear for a short period of time.
  3. Change the contents of label labels or those with that class to their idiomatic equivalents contained in the hash_DICT1 relation.
  4. Add the active class to form fields if necessary. (hover).
  5. Fields with the validate class are validated according to the data type specified in the data-is attribute using the functions in the validate internal library.
  6. Before submitting a form, verify that none of the fields have the error class active.
  7. If the system fix called errors contains fields indicating incorrect fields in a form. Add the errror class attribute to those fields; the attribute disappears if the data is modified.
  8. If a variable named graph_canvas exists, it assumes there is data that needs to be graphed. It queries the data for each variable to run the external chart.js library to draw it.
1 This data is stored in lang/, and the variable is created during the system load.

Search