I have a UI Action on a particular table which I want to hide based on certain Condition

ritu_saluja
Tera Expert

I have a UI Action on a particular table which I want to hide based on certain Condition. I am able to hide the UI action but customer doesnt want to refresh/reload the page manually.

Instead he wants to automatically refresh the page once this value gets changed and ui action should get disable.

How to achieve that?

5 REPLIES 5

Mehta
Kilo Sage
Kilo Sage

Since UI action is based on Server Side Scripting and condition due get evaluated when the form gets loaded. once the field value has been changed they need to save or update the record. if you tried to reload without saving the form will not have changes as it was never saved/updated. 

Hello @Mehta 

My value are getting updated as i have done it with before BR and when I am reloading the page without saving it my ui action is getting hidden but the requirement is we dont want to reload the page manually.

 

In that scenario, you can add below code line to your business rules to make it redirect once the br execute. it is recommended to use after business rule because of reloading but you can try with before br also : 

var redirectLink = current.getLink(true)
gs.setRedirect(redirectLink);

@ritu_saluja 

 

Were you able to resolve the issue ? if yes can you mark my answer as correct or helpful.