- 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-13-2016 08:08 AM
Rajesh,
Can you do something like :
action.setRedirectURL(current);
current.approval = "approved";
current.update();
new UIActionUtils().approvalsNoLongerRequired(current.sys_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 08:08 AM
Hi Rajesh,
For testing purpose can you remove this line and test once.
new UIActionUtils().approvalsNoLongerRequired(current.sys_id);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 08:15 AM
Hi Pradeep,
It doesn't work, when I approve it get redirected to a different change ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 12:42 AM
Hi,
Can anyone help me on this