Methods
# static ErrorMessage() → {string}
Obtain the description of the last error that occurred.
Obtain the description of the last error that occurred.
Text description of the last error or if no error has occurred, an empty string
# static Init() → {boolean}
Performs synchronous initialisation by discovering and connecting to either COM MeadCo Security Manager or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
Performs synchronous initialisation by discovering and connecting to either COM MeadCo Security Manager or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
With ScriptX.Print Services this will use a synchronous (blocking, deprecated) call to the server
- Deprecated:
- due to the synchronous ajax calls, use InitAsync
- See:
true if initialisation succeeded and implementations of the MeadCo Security Manager object is available, false if failed
# static InitAsync() → {Promise}
Performs asynchronous initialisation by discovering and connecting to either ScriptX.Addon or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
Performs asynchronous initialisation by discovering and connecting to either ScriptX.Addon or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
# static IsLicensed() → {boolean}
Performs synchronous initialisation
.Performs synchronous initialisation
true if a valid license is available
# static IsLicensedAsync() → {Promise}
Performs asynchronous initialisation
.Performs asynchronous initialisation
Promise object with a resolve of the loaded license detail and reject of the error message
# static ReportError(msg)
If an error has occurred, displays an alert box with details of the licensing error with any given message appended.
If an error has occurred, displays an alert box with details of the licensing error with any given message appended.
Parameters:
Name | Type | Description |
---|---|---|
msg |
string | Text to append to the error message. |