Creating Related List - Add button

Tadz
Kilo Sage
Kilo Sage

Hi Guys,

I was trying to create a Related List - Add button

I was checking the UI Action - Add button for Change

Upon checking the script:

var chngModal = new GlideModal('task_add_change_req');
	chngModal.setTitle(getMessage("Add Change Requests"));
	chngModal.setWidth(1200);
	chngModal.setAutoFullHeight(true);

 

I can't find "task_add_change_req" in the UI Page or UI Macro table.

I just want to check the script so that i can replicate and create my own custom one.

 

Can someone guide me where to find the script for it?

 

Thanks,

Tadz

1 ACCEPTED SOLUTION

Sebastian R_
Kilo Sage

Looks like it´s a hidden UI Page. I found the following script: https://your-instance.service-now.com/scripts/task_add_change_req.jsx which does the "Add selected".

They basically are using the "g_list.getChecked()" to get the checked item and doing an GlideAjax to add them to the table.

View solution in original post

5 REPLIES 5

asifnoor
Kilo Patron

Hi,

Check this link. This should guide you.

https://community.servicenow.com/community?id=community_question&sys_id=fa08b9dcdb473344414eeeb5ca96...

Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.

Regards,
Asif
2020 ServiceNow Community MVP