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

This is a horribly pointless example, but proves that it should be working...

What build are you on? Also, what other customizations do you have that could be causing issue here?


ShaneBrazeal
Tera Contributor

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


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.


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;


felipe_barbosa
ServiceNow Employee
ServiceNow Employee

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.