Trying to add a ui action in "Action on selected rows" specific to sc_Request table

synthia
Giga Expert

Hi All ,

I am trying to add a new ui action into "Action on selected rows" drop down specific to sc_request table.

I have checked the "List Action" box in the ui action but still it doesnt come up in the drop down. But if i make the ui action on "Task" table then it is coming up in the drop down. IS there any solution for this ? To make it come specific to requests alone ?

 

Thank you.

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

screenshot for reference. 

 

find_real_file.png

 

find_real_file.png

 

 

 

 

View solution in original post

11 REPLIES 11

function generateList() {

var url = '/sp?id=pick_list_page&table=sc_request&sys_id=' + g_form.getUniqueValue() + '&template_id=cdcb2575db932740bcde60d4449619eb';

g_navigation.openPopup(url);
}

 

This is my old script which generates a list for all the ritms under the req. Now i changed it to sc_Req_item but then it again picks up all the ritms under the req.

var tblName;
var ajaxHelper;
var selSysIds;
var sysIdList;
var indx = 0;
var numSel = 0;

function generateList() {
tblName = g_list.getTableName(); //To get the table name
alert(tblName);
selSysIds = g_list.getChecked(); //To get the list of selected records sys_id
alert(selSysIds);
sysIdList = selSysIds.split(',');
alert(sysIdList);
numSel = sysIdList.length;
alert("in line 13");
alert(numSel);

if(numSel > 0) {
indx = 0;
alert("in line 17");
//ajaxHelper = new GlideAjax('RejectRecordAjax');
var url = '/sp?id=pick_list_page&table=sc_req_item&sys_id=' + g_form.getUniqueValue(selSysIds)+ '&template_id=cdcb2575db932740bcde60d4449619eb';
g_navigation.openPopup(url);
}
}