- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2014 05:22 AM
I'm trying to have a UI action on the RITM form to make it easier for Service Desk staff to add approvers (without having to go down to the bottom and select 'Edit...'.
I've done and Insert&Stay on the existing 'Edit...' UI action and modified this so it shows in the right place.
When trying to use this from the form button it's as is it doesn't detect the table required. It errors with...
"Choose a table before adding filters"
The required table is the sys_user table, any ideas?
Script:-
var uri = action.getGlideURI();
var path = uri.getFileFromPath();
uri.set('sysparm_m2m_ref', current.getTableName());
uri.set('sysparm_stack', 'no');
action.setRedirectURL(uri.toString('sys_m2m_template.do'));
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2014 06:07 AM
most easiest solution would be
create a ui action.
check the "Client" checkbox.
Onclick : callEditOfApprover();
script:
function callEditOfApprover()
{
document.getElementById("sysverb_edit_m2m").click();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2014 06:07 AM
most easiest solution would be
create a ui action.
check the "Client" checkbox.
Onclick : callEditOfApprover();
script:
function callEditOfApprover()
{
document.getElementById("sysverb_edit_m2m").click();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2014 06:51 AM
Thanks, that did the trick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2021 03:49 AM
Hi Pushpanathan,
On rm_release form, I want to add 'Knowledge -> Source task' related list. and I want to create custom 'Edit' button on that relatedlist to add knowledge artcles to that list on release form using 'Edit' button.
Could you please help me in achieving this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2014 08:44 AM
Do you have another solution ?
I have 4 relates list in my form and when I click on edit button,its always open the table of the first related list !