- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 08:01 AM
When user clicks on approve ui action they are getting redirected to a different page. But they should be re directed to the same page.Below is my code, but it's not working.
current.approval = "approved";
current.update();
new UIActionUtils().approvalsNoLongerRequired(current.sys_id);
action.setRedirectURL(current);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 01:06 AM
action.setRedirectURL(current); should be used before current.update();
action.setRedirectURL(current);
current.approval = "approved";
current.update();new UIActionUtils().approvalsNoLongerRequired(current.sys_id);
If this doesn't work, then there might be some error and you should check error logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 01:06 AM
action.setRedirectURL(current); should be used before current.update();
action.setRedirectURL(current);
current.approval = "approved";
current.update();new UIActionUtils().approvalsNoLongerRequired(current.sys_id);
If this doesn't work, then there might be some error and you should check error logs.