cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Alert window to display error messages

RK_10348291
5-Regular Member

Alert window to display error messages

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

 

View solution in original post

1 REPLY 1

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

 

 

Top Tags