Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Reference Qualifier issues

jonathangilbert
Mega Sage

Hi All

 

Can someone help me with a reference qualifier on a Catalog item

 

I have the first variable on the form called "Colleagues Store Location", which is referencing the location table.

 

I want the 2nd variable called "Name of colleague" which references a custom table called "employee data". This table also includes a field called u_location, which references the location table.

 

What I am trying to do is for the 2nd variable to only display the employees that have the same location on their employee record (u_location) that has been selected in the first variable

 

So for example, if the Colleagues Store Location is set as "Birmingham", I only want the 2nd variable "Name of Colleague" to only display users that have "Birmingham" as the location on the their record

 

This is what I had as the ref qualifier on the 2nd variable, but it just displays everything 

 

u_location=javascript:current.variables.colleagues_store_location

1 ACCEPTED SOLUTION

RakeshM49470519
Tera Expert

Hi @jonathangilbert ,
Use advance reference and give reference qualifier as

javascript: 'u_location=' + current.variables.colleagues_store_location




Regards
Rakesh

View solution in original post

5 REPLIES 5

jency83
Tera Guru

Try this

javascript: 'u_location=' + current.variables.colleagues_store_location;

RakeshM49470519
Tera Expert

Hi @jonathangilbert ,
Use advance reference and give reference qualifier as
javascript: 'u_location=' + current.variables.colleagues_store_location


Regards
Rakesh

RakeshM49470519
Tera Expert

Hi @jonathangilbert ,
Use advance reference and give reference qualifier as

javascript: 'u_location=' + current.variables.colleagues_store_location




Regards
Rakesh

Tanushree Maiti
Tera Sage

Hi @jonathangilbert 

 

Use this -

Adv Ref Qual:

javascript: 'u_location=' + current.variables.colleagues_store_location;

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: