Skip to main content

Posts

Showing posts from January, 2021

Handle Loading Spinner Visibility in Aras Innovator

When opening Item window, a loading spinner shows automatically like below figure. In some cases, manually handle its visibility would be a necessary process to prevent user do any operation. Show Loading Spinner aras.browserHelper.toggleSpinner(document,true); Hide Loading Spinner aras.browserHelper.toggleSpinner(document,false);

Fix Failed to Logout Properly in Aras Innovator When Using Chrome

Normally, Aras Innovator will save user's preference and disconnect session automatically when user logout. In order to perform this action in background, relevant code should be triggered in onbeforeunload event and then send request to server silently. But newer version Chrome disallow "Synchronous XHR in page dismissal", this would make above post process failed (see error message in Figure 1). Therefore, all requests in onbeforeunload event are abandoned due to this kind of policy. Figure 1. Error in console. Solution Open "\Innovator\Client\javascript\aras_object.js". Add below code. Aras.prototype.handleUnloadSoapSend = function Aras_handleUnloadSoapSend(methodName,xmlBody,url) { if (this.Browser.isCh() && window.fetch) { var soapMessage = '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">'; soapMessage += '<SOAP-ENV:Body>'; soapMessage += '<'+methodName+'...

aras.evalJavaScript Method (aras Object)

aras.evalJavaScript Method Evaluates JavaScript code in the Aras object space. Syntax aras.evalJavaScript( jsCode ) Parameters Name Type Description jsCode String Required. JavaScript code represented as a string. Return Value Returns evaluated result from given JavaScript code. See Also aras Object Aras Innovator Client Framework