I have a UI Action on a particular table which I want to hide based on certain Condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 02:44 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 02:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 02:57 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 03:16 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2023 02:15 AM
Were you able to resolve the issue ? if yes can you mark my answer as correct or helpful.