Constants

Introduction

Dynamo provisions default constants that can be used to easily access predefined primitive values. These constants can be found in the constants.js file in Dynamo core library.

Constants

Constants are accessible in processor context via a constants property. This is seen as - this.constants.CONSTANT_NAME Some of the major constants the developer will be interacting with include -

ELEMENTTYPE - Contains all the predefined dynamo element types - Example include this.constants.ELEMENTTYPE.INPUT

  • "INPUT", "SCRIPT", "DESIGNER", "HIDDEN", "GRID", "NAV", "FILEUPLOAD", "DOWNLOAD", "SELECTSET", "LABEL", "LARGEINPUT", "COMMAND", "SECTION", "TABS", "SELECT", "LIST", "IMAGE", "ACTIONVIEW", "HTMLVIEW", "WEBVIEW", "MESSENGER", "PARTIAL"

INPUTTTYPE - Contains all the predefined dynamo input types

  • ["TEXT" => "text"], ["NUMBER" => "number"], ["DATE" => "date"], ["CHECKBOX" => "checkbox"], ["PASSWORD" => "password"]

VALIDATORTYPE

  • "REQUIRED", "MAXLENGTH", "MINLENGTH", "REGEX"

DATE

  • "TODAY"

ENTRYMODE

  • ["OBJECTID" => "ObjectId"]

NAVIGATIONTYPE

  • "CLIENT", "DYNAMO"

ELEMENT_SELECT_SOURCETYPE

  • "PROCESSOR", "FORM"

COMMANDTYPE

  • "DEFAULT", "DOWNLOAD"