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

Hi Ajit, can you assist with my scenario in the discussion at the following link?



Advanced reference qualifier not working on Lookup Select Box



Thanks,


Teri


@ajitchandragiri  You saved my butt today w/ this info. Thank you!

cg_snow
Kilo Explorer

HiAll,


I am trying the same thing.


In my Select Lookup Box i have :


Reference Qualifier : javascript: new getValues().GetActivity();


Attributes: ref_qual_elements=Operating_Sys;affected_ci_15



So it is working ( and has been for many years now ) on the CMS .


BUt my problem is on Istanbul Portal .


On Portal the


var server _id = current.variables.affected_ci_15; ( Script Include Class- getValues)


gives me a Undefined !


amaradiswamy
Kilo Sage

I am facing the same issue and even set ref_qual_elements but still it is not working in service portal.


SN Emy
Tera Guru

where did you find ref_qual_elements



i dont have it on my form