UI Action not working on list banner.

kumaraj
Kilo Sage

I have created an UI action "getNoOfTask" on incident table.

It is working on Form Button but not working on List banner button, giving message that "No record selected".

Please see the below script and help me to find the solution. FYI - I have not checked it Client Callable Action.

function getPerformanceTasks(){
var gr = new GlideRecord('task');
gr.addQuery('sys_class_name', '!=', 'Request');
gr.addQuery('short_description', 'CONTAINS', 'Performance');
gr.query();
while(gr.next()){
gs.addInfoMessage(gr.number);
}
}
getPerformanceTasks();

2 ACCEPTED SOLUTIONS

Shishir Srivast
Mega Sage

I believe. you need to select the record in list view before executing the action unless you are not redirecting the page.

 

 

 

View solution in original post

Shishir Srivast
Mega Sage

I believe, you need to select the record to perform the action unless you are not redirecting the page to some where else like New or Edit UI Action.

View solution in original post

5 REPLIES 5

peter_repan
Tera Guru

I found out that if you have duplicated UI action for "New" and change the Action name from "sysverb_new" to anything else, you will always see message "No record selected" if you do not click any record in the list. In case you leave the Action name = "sysverb_new" then you don't have to select anything in the list.