Volt Formula

Methods

(inner) context(ctxopt) → {string}

Gets the current API context (if ctx param is null or not supplied) or Sets the API context to either database for local DOM, for those APIs that require working with differents contexts such as GetField/SetField

Parameters:
NameTypeAttributesDescription
ctxstring<optional>

the context to set: 'db', 'local', or 'all' (default for any other string supplied)

Returns:

the context

Type: 
string

(inner) debug(msg, type) → {Object|undefined}

Uses the console object's methods to display Debug messages, prepending them with a timestamp. Defaults to console.log() if no type of logger is supplied

Parameters:
NameTypeDescription
msgstring

message

typestring

logger to employ: 'Error', 'Warning', 'Info', 'Debug', 'Log' from the console object, or javascript alert if type is Alert

Returns:
  • Object representing the debug message

    Type: 
    Object
  • undefined if no logger is available

    Type: 
    undefined