BackgroundRequestTimeout: Number;
The BackgroundRequestTimeout property determines delay before displaying a loading indicator for background requests.
Use JSON or the setBackgroundRequestTimeout method to set the property value and the getBackgroundRequestTimeout method to get the property value.
The default value: 3000.
To execute the example, open the Foresight Analytics Platform web application. The scenario specified below must be executed in the browser console.
Deny displaying of a loading indicator and clear repository requests:
var serviceRequest = PP.Mb.ServiceRequest({ Service: PP.App.getMetabase(), // Repository ShowWaiterTimeout: 2000, HideWaiterTimeout: 2000, BackgroundRequestTimeout: 6000, }); // Deny displaying of a loading indicator if (serviceRequest.getWaiter()) serviceRequest.setShowWaiter(false); // Finish request serviceRequest.endRequest(); // Clear all repository requests serviceRequest.clearRequests();
After executing the example it is denied to display a loading indicator, the request is finished, and all repository requests are cleared.
See also: