Reference Qualifier not working on list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2011 09:22 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2011 05:38 PM
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2011 11:26 AM
Yeah, not really sure what's going on here. If anyone else has anything info, please share!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2011 11:03 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2011 04:49 PM
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.