How to Filter the 'watch_list' Field Without Using a Reference Qualifier?

GopikaP
Mega Sage

Hi Everyone,

 

I need to filter the 'watch_list' field (an OOB field in the Task table), but I can't use reference qualifier or dictionary override (they don't want to edit OOB). I’ve tried using g_form.setReferenceQual() in a client script and g_form.setFilter(), but neither seems to work. Any suggestions? 

 

Thanks

3 ACCEPTED SOLUTIONS

JenniferRah
Mega Sage

That's literally what dictionary overrides are for, so I'm confused as to why they wouldn't want to use that. 

 

The only thing I can think of would be to create a custom field with the filter you want and then set the watch list to it after you save, but you'd still be changing the OOTB view to substitute the watch list field with your custom one.

View solution in original post

Sandeep Rajput
Tera Patron
Tera Patron

@GopikaP You can't filter without the reference qualifier g_form.setReferenceQual() in a client script and g_form.setFilter(), will not work here.

 

Instead of changing the reference qualifier on the OOTB watchlist field on task, you can create a dictionary override on the task table and achieve the same functionality on other tables. For more information please refer to https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/data-dictionar...

 

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@GopikaP 

Dictionary override is the only way here.

You can alter the behavior in whatever way you want specific for your table

what's stopping to use that?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

JenniferRah
Mega Sage

That's literally what dictionary overrides are for, so I'm confused as to why they wouldn't want to use that. 

 

The only thing I can think of would be to create a custom field with the filter you want and then set the watch list to it after you save, but you'd still be changing the OOTB view to substitute the watch list field with your custom one.

Sandeep Rajput
Tera Patron
Tera Patron

@GopikaP You can't filter without the reference qualifier g_form.setReferenceQual() in a client script and g_form.setFilter(), will not work here.

 

Instead of changing the reference qualifier on the OOTB watchlist field on task, you can create a dictionary override on the task table and achieve the same functionality on other tables. For more information please refer to https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/data-dictionar...

 

Ankur Bawiskar
Tera Patron
Tera Patron

@GopikaP 

Dictionary override is the only way here.

You can alter the behavior in whatever way you want specific for your table

what's stopping to use that?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

GopikaP
Mega Sage

Thanks @JenniferRah , @Ankur Bawiskar@Sandeep Rajput , I truly appreciate it.