Skip to main content
5-Regular Member
January 24, 2023
Solved

Alert window to display error messages

  • January 24, 2023
  • 1 reply
  • 2685 views

Hi all,

 

I need to display error messages from a custom action in a separate alert window. This alert should pop up after the action is completed. Since this is only a simple display of error messages, I am trying to create a simple jsp page for this. However, I am facing compilation issues for this jsp page. I am attaching the error screenshot and the code. The custom action is "anonymizeUser". Any suggestions with respect to this will be highly appreciated.

 

Thanks and Regards

 

Best answer by Pascal_Brunet

Hello @RK_10348291

 

I think it's not needed to create a jsp page for returning error message. Your method anonymization in class ext.ccdr.anonymization.AnonymizeUser should return FormResult. With FormResult, you can display error message in an automatic popup window:

 

Pascal_Brunet_0-1674634729284.png

Pascal_Brunet_2-1674634780651.png

 

Pascal_Brunet_3-1674635231917.png

 

BR,

Pascal

 

 

1 reply

14-Alexandrite
January 25, 2023

Hello @RK_10348291

 

I think it's not needed to create a jsp page for returning error message. Your method anonymization in class ext.ccdr.anonymization.AnonymizeUser should return FormResult. With FormResult, you can display error message in an automatic popup window:

 

Pascal_Brunet_0-1674634729284.png

Pascal_Brunet_2-1674634780651.png

 

Pascal_Brunet_3-1674635231917.png

 

BR,

Pascal