Forum Discussion

MyoThet's avatar
MyoThet
Ideator I
9 years ago

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.      

5 Replies

  • it should appear. Can you check if this is really blank? (using F12 to look at the DOM). Do you use internationalization? multiple languages?
  • I am using Aras Innovator 11.0 SP8. when i check using F12 i got like this. drive.google.com/open I think not using internationalization and multiple languages.  
  • hummm I can't reproduce (it works on my side) can you tell me which version of Edge you are using and also try on a different browser?
  • I tried on Firefox and Chrome. it is ok. showing error message as expected. I am getting prompt without error message in IE 11. what configuration is needed in IE 11 for that. ? please guide me.   thanks in advance.  
  • 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" />