Reference Qualifier on Requested Item.

Dariussiriuse
Tera Contributor

Hi @Ankur Bawiskar!

Could you please help me understand why mine would not work?

I literally have a copy paste of the same reference qualifier from the following post but mine doesn't want to show anything... Reference Qual. 

 

This is what I have:

javascript: 'u_site=' + current.variables.site;

 

and

ref_qual_elements=site

 

 

This just doesn't do anything!

Intriguingly enough, it does work when I give it an arbitrary sysid.. So I know for a fact that it is something related to how I wrote it... but then I don't know how...

 

What I am trying to achieve is to make the user chose a site, so that a list would update based on this site.. 

the site field is a lookup select box, and the one for the reference qualifier is a List collector.

 

Any thoughts?

Kind regards,

Darius

1 ACCEPTED SOLUTION

Vishal Birajdar
Giga Sage

Hi @Dariussiriuse 

 

Can you try below reference qualifier : 

 

javascript:"u_site.sys_id=" + current.variables.site;

VishalBirajdar_3-1698665424698.png

 

 

It's working for me ...!!

 

Output : 

Case 1 :

 

VishalBirajdar_0-1698665302788.png

Case 2 :

VishalBirajdar_1-1698665322676.png

Case 3:

VishalBirajdar_2-1698665348687.png

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@Dariussiriuse 

Please share screenshots of the variable configuration screenshot

Also ensure for the lookup select box the Lookup value field is set to SysId

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Apologies, I tried to insert code and it deleted the entire part of the question, it should be updated now.

This is what I have..

I tried as well with u_site.sys_id but to no good end.

 

Also please ignore the parentheses at the end, I was trying things out.

@Dariussiriuse 

u_site on u_roles table refer to same table which is being referred by site variable?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader