The CreatorCon Call for Content is officially open! Get started here.

UI action 'Edit...' for approvals

nmcl
Giga Expert

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'));

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

most easiest solution would be



create a ui action.


check the "Client" checkbox.


Onclick : callEditOfApprover();



script:


function callEditOfApprover()


{


document.getElementById("sysverb_edit_m2m").click();


}


View solution in original post

4 REPLIES 4

Kalaiarasan Pus
Giga Sage

most easiest solution would be



create a ui action.


check the "Client" checkbox.


Onclick : callEditOfApprover();



script:


function callEditOfApprover()


{


document.getElementById("sysverb_edit_m2m").click();


}


Thanks, that did the trick


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 ?

gaia
Tera Contributor

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 !