Reference Qualifier not working on list view

wattsj
Kilo Expert

Hey All,

Don't know if I'm the only one, but it seems like its the simple stuff in Service-now that stumps me...

Here's my problem... I've got a reference field on a form that needs to be filtered. The reference qualifier looks at another field on the form to base the filter criteria on. In real life, my reference qualifier looks like this:

javascript:'u_product=' + current.top_task

On the form this works like a champ, but when I go to a list view, and list edit the reference field, the reference qualifier is not being applied, and the result? You simple can't select any values.

What am I missing?

Thanks in advance!

9 REPLIES 9

tony_fugere
Mega Guru

That's just odd. I have been using advanced Reference Quals on many fields and list editing works as expected. The only difference between mine and yours is a semi-colon at the end of the line:


javascript:'u_product=' + current.top_task;


wattsj
Kilo Expert

Yeah, not really sure what's going on here. If anyone else has anything info, please share!


ShaneBrazeal
Tera Contributor

It looks like you need to go the advanced reference qualifier route - http://wiki.service-now.com/index.php?title=Reference_Qualifiers#Advanced_Reference_Qualifiers

So create a global business rule that returns the string 'u_product=' + current.top_task and call that business rule from the field's dictionary record in the reference qualifier field.

Hope this helps!


Thanks for the input here, Shane!

Shane is right. That won't hurt to try, but it should be working directly on the Dictionary's Ref Qual field here and it does on DEMO and other instances I have access to.

If that works as an Advanced RQ, but not normally, it's some voodoo to me.

Advanced Reference Qualifiers are awesome though for those times that you must truly go beyond the reasonable function of the field and write a large script that will return your query string.

I would recommend a Script Include that is an on-demand function as Global Business Rules can bog down performance of your instance.