# Appendix E - Script Library (WA Application Specific)

It is highly recommended that you do not modify subroutines beginning with "wa...". The following is a list of these subroutines (at the time of this writing) along with a description as to their purpose.

  • waCntMandFields. Controls mandatory fields (see routine waSetErrorFlags for details). Used with "red circle" error indicators.

  • waExecuteStoredProcedure. Contains a list of routines referenced in the State documents. Any new routines accessed by the State documents must be added here in order to be executed.

  • waExecuteStoredProcedureChild. Contains a list of routines referenced in the State documents when a child document is created. Any new routines accessed by the State documents must be added here in order to be executed

  • waInitGanttFields. Initializes the fields used in a Gantt chart.

  • waInitModFields. Sets which fields in the workflow document the current user can modify.

  • waInitModTabs. Sets which tabs in the workflow document the current user can modify.

  • waSetErrorFlags. Returns true if mandatory fields are not set and updates the workflow document with the following: WAErrorMessage (contains the error message to display) and FieldError (contains a list of fields to display the corresponding red circle error indicator).

  • waSetFieldListFromFieldDocs. Internal routine which sets a list of field names derived from the Field documents.

  • waSetFieldUserListFromRoleDocs. Internal routine which sets a list of field names derived from the Role documents.

  • waSetListModifiable. Internal routine which gets the list of modifiable fields for the current user.

  • waSetRedCirclesNotes. Sets the red circle indicators for Notes clients.

  • waSetUsersField. Copies all users from the Field documents to the Workflow tab of a workflow document provided that the corresponding fields in the workflow document are empty.

  • waSetUsersMngr. Copies all managers of the current user from the OU documents to the workflow document. Generates an error if the manager of the user is undefined.

  • waSetUsersRole. Copies all users from the Role documents to the Workflow tab of a workflow document provided that: 1) There are corresponding Field docs for those roles; and 2) The corresponding fields in the workflow document do not contain a value.

Last Updated: 10/13/2019, 7:06:45 PM