ViewService.showLoadingRestCall Method

Blocks the UI for the duration of the REST API call, and automatically reports an error if it occurs. This call is designed to be used along with the dundas REST API JavaScript methods.
 

Parameters

promise

Type: jQuery.Promise
The promise being used for the REST call made.
options

Type: Object
(optional) The options for loading. Options are:
     customLoadingText       [type: String]      - (optional) Custom loading text to show. If this is null, default text is used.
     element                 [type: HTMLElement] - (optional) The element to show the loading overlay on.
     isInputInlineLoading    [type: Boolean]     - (optional) Specifies the loading should be an inline input loading icon. If this is used, element must be specified (the input element).
     isErrorIgnored          [type: Boolean]     - (optional) If set to true, any error reported by the call will not be automatically shown on the UI.
     ignoreInvalidSession    [type: Boolean]     - (optional) If set to true, invalid sessions ajax returns will be ignored. Normally they will redirect the user to the logon page.
     showDelay               [type: Number]      - (optional) Time delay in milliseconds before showing the loading screen, defaults to 500ms if null.
 

Optional: True