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-17-2011 05:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2011 09:18 PM
One thing to keep in mind in this case is that you are trying to use the current GlideRecord object, and that isn't accessible with the standard reference qualifier functionality - http://screencast.com/t/YEDcQZch. So unfortunately it looks like you will have to go the advanced reference qualifier route.
You also probably want to skim over the wiki article related to list editing and reference qualifiers - http://wiki.service-now.com/index.php?title=Reference_Qualifiers#Related_lists.2C_list_editing_and_advanced_reference_qualifiers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2011 02:37 PM
Good point. I always found it odd that the Wiki states that "current" is not available, but it appears that it is. Go try my example in DEMO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2012 05:56 AM
The wiki does state 'current' should not work but in my experience it works just fine.
Here's an example of displaying users who have the caller as their manager:
javascript:"manager="+current.caller_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2015 11:07 AM
Maybe current is not available when looking at a list? Not sure, maybe in your javascript you should first test if current is available and then assign current.top_task, otherwise, assign an empty string so you can at least select something.