Volt Formula
- Source
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:
Name | Type | Attributes | Description |
---|---|---|---|
ctx | string | <optional> | the context to set: 'db', 'local', or 'all' (default for any other string supplied) |
- Source
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:
Name | Type | Description |
---|---|---|
msg | string | message |
type | string | logger to employ: 'Error', 'Warning', 'Info', 'Debug', 'Log' from the console object, or javascript alert if type is Alert |
- Source
Returns:
Object representing the debug message
- Type:
- Object
undefined if no logger is available
- Type:
- undefined