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

No, in fact they don't.

u_roles refer to records for a role table, there is only two fields on it: name and site, which references to the table for sites (there is only one field on it: name)

u_site is referencing to the table sites.

By the way, yes the site variable has set Lookup Value Field as Sys ID

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

And works for mine too now 🙂

 

In fact what happened was that I wrote 'ref_qual_elements=site' instead of 'ref_qual_elements=u_site'.

And yes I have added the .sys_id, it's true that sys_ids are returned, not GliddeRecord objects.

 

Thank you!