- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 03:22 AM - edited 10-30-2023 03:25 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 04:30 AM
Can you try below reference qualifier :
javascript:"u_site.sys_id=" + current.variables.site;
It's working for me ...!!
Output :
Case 1 :
Case 2 :
Case 3:
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 03:59 AM - edited 10-30-2023 04:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 03:51 AM
By the way, yes the site variable has set Lookup Value Field as Sys ID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 04:30 AM
Can you try below reference qualifier :
javascript:"u_site.sys_id=" + current.variables.site;
It's working for me ...!!
Output :
Case 1 :
Case 2 :
Case 3:
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 04:42 AM
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!