Return error at LifeCycle Transition Pre Server method

オフライン
Hello community,   I attached a server method at LifeCycle Transition - Pre Server method. That method will check some condition. and return error item if the condition is not satisfied. My code is like the following.
Innovator myInnovator = this.getInnovator();

if(){
  // do something
}
else
{
  return myInnovator.newError("some error message");
}
  When the condition is not satisfied. It show error and does not promote to next LifeCycle state. But error message is not appeared when displaying the error. (as in attached screenshot) https://drive.google.com/open?id=0Byt-71Uyap_8c2JzSzJXN0sxNHc   Plz. give me some suggestion. how to get error message appear on the error dialog. Thanks in advance.      
Parents
  • I got the solution from the ARAS support. It is ok now. 1. On the server, edit the \Innovator\Client\scripts\promoteDialog.html 2. Find the closeWindow function around line 169. 3. Use setTimeout on the dialogArguments.dialog.close call. function closeWindow(value) { if (dialogArguments.dialog) { setTimeout(function(){ dialogArguments.dialog.close(value); }, 100); } else { window.returnValue = value; window.close(); } } 4. Edit the Innovator\Client\web.config a. Increment the filesRevision attribute on the <cachingModule> tag <cachingModule moduleEnabled="true" filesRevision="2" />
Reply
  • I got the solution from the ARAS support. It is ok now. 1. On the server, edit the \Innovator\Client\scripts\promoteDialog.html 2. Find the closeWindow function around line 169. 3. Use setTimeout on the dialogArguments.dialog.close call. function closeWindow(value) { if (dialogArguments.dialog) { setTimeout(function(){ dialogArguments.dialog.close(value); }, 100); } else { window.returnValue = value; window.close(); } } 4. Edit the Innovator\Client\web.config a. Increment the filesRevision attribute on the <cachingModule> tag <cachingModule moduleEnabled="true" filesRevision="2" />
Children
No Data