The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Lookup select box reference qualifier not working

gm01
Kilo Explorer

I am trying to use a lookup select box to display options based on the user using a reference qualifier.   I have seen many references to it should work it won't work and am looking for if this can work and how.   I am using as my ref qual javascript:'u_user_uuid='+current.variables.vm_user; .   This works when I am using a Reference table perfectly but this just seems to show the first entry in the table when the form loads and doesn't change with the user.   With the reference field it will work but shows only the sysid even though I have a different field set to show set to display true (that is a separate issue).   So should this work or is there something else I have to add?

1 ACCEPTED SOLUTION

ajitchandragiri
Giga Expert

You need to add attribute ref_qual_elements=vm_user as it has to query again to the server with update value of referring field.



http://wiki.servicenow.com/index.php?title=Variable_Types#Lookup_Select_Box


View solution in original post

10 REPLIES 10

Michael Fry1
Kilo Patron

It should work to filter a reference list based on another variable. When you say change with the user, is that vm_user? Your reference choices need to have the u_user_uuid set to the user.


ajitchandragiri
Giga Expert

You need to add attribute ref_qual_elements=vm_user as it has to query again to the server with update value of referring field.



http://wiki.servicenow.com/index.php?title=Variable_Types#Lookup_Select_Box


So after looking at that page again and searching for other posts I found where to put that.   Not that clear in documentation and the field has changed placement over time.  


yeah, documentation does not give examples and with version changes the field look and placement changes.. glad to hear you got it to work..:)