gs.addErrorMessage() is cleared automatically after 2 seconds

Igor __tek
Tera Contributor

Hi developer community,

 

I created a simple business rule which aborts an action if someone tries to change the value in the field "assigned_to" and if there is an open part requirement record at the same time (errors based on states). 
The issue is that if I call setAbortAction(true) the gs.addErrrorMesage() shows the error only for 2 seconds. 

 

I tried all orders from these 3 functions but nothing worked. (setAbortAction(true), addErrorMessage(), setRedirectURL())
Does someone have an idea?

Igor__tek_0-1676029212737.png

 

5 REPLIES 5

Sampat Mule1
Tera Contributor

Hello Igor,

There must be UI policy script on same table which clear Messages.

Please check Ui policy script where "clearMessages" is mentioned.

 

it works fine after deactivating ui policy.

 

Thanks,

Sampat