Setting a default dynamic filter in a Related List

Amit160
ServiceNow Employee
ServiceNow Employee

Hi,

We have implemented a Related List in a form. This Related List is created via System Definition --> Relationship. In this Relationship, we have a simple script which filters the record from 'Queries from table'. All is well. The intended records are showing up in the 'Applies to table', the Parent table form. Now, we would like to introduce a default filter to this Related List. So that when user clicks Right click on mouse and choose 'Open New Window', these default filters applies and shows only those records which are relevant to the parent table form as it happens in a simple Related List. The option to set default filters exists in the Related List but it is not dynamic ( 'Set as Default Filter'). Is there any way to achieve this ?

Please share your thoughts.

 

Regards,

Amit

 

2 REPLIES 2

Omkar Mone
Mega Sage

Hi 

The below link seems to be of your help - 

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

 

Regards,

Omkar Mone

Amit160
ServiceNow Employee
ServiceNow Employee

Hi Omkar, Thank you for your reply. I followed the approach but it didn't work out. As per the thread, I need to set table 'sys_ui_list_control' field 'edit_default_filter' with our filter string in a Display BR. But while doing so, I am getting 

Seems, we cannot set up the filters on the go.

 

Thanks,

Amit