Multiple incident Resolve OnClick on ui action(List Choice)

Abhishek Gardad
Giga Contributor

Following UI action not working on list view. Need help with that............

it gives just alert true then no effects on records.

ListView.PNG

ui.PNG

ui1.PNG

Message was edited by: Abhishek Gardade

Message was edited by: Abhishek Gardade

1 ACCEPTED SOLUTION

Vishal Khandve
Kilo Sage

Create UI action named Resolve ALL and write following script in the ui action.



check the LIST CHOICE Checkbox



current.incident_state ='6';


current.u _cause='Other';


current.u_reso_method='Self Service';


current.close_notes = 'Close notes you want';


current.update();


action.setRedirectURL(current);




In above script change the label depeding upon your field names.




Thanks,


Vishal Khandve



Mark answer correct if you found this helpful


View solution in original post

3 REPLIES 3

Deepak Ingale1
Mega Sage

Hi,



You are calling setFields() method from client which should use client side APIs.


Current is Server side API.


I was uploaded the wrong screenshot. Check it now, Still, it's not working. Is their any Alternate way?


Vishal Khandve
Kilo Sage

Create UI action named Resolve ALL and write following script in the ui action.



check the LIST CHOICE Checkbox



current.incident_state ='6';


current.u _cause='Other';


current.u_reso_method='Self Service';


current.close_notes = 'Close notes you want';


current.update();


action.setRedirectURL(current);




In above script change the label depeding upon your field names.




Thanks,


Vishal Khandve



Mark answer correct if you found this helpful