- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 07:18 AM
I am trying to create a Dynamic Reference Qualifier and not having much luck.
(Personal development instance - Helsinki latest patch)
The objective is - on a Task Form - e.g. Incident -
select a "Company" value -
and then use a dynamic filter on the "Business Service" search pop-up to restrict choices to only those services that have their company attribute set to the same value.
My Script Include: (as you can see - I tried various ways to get the company value)
My Dynamic Filter
My Dictionary entry
I have tried lots of permutations but nothing seems to work
Any clues, hints, tips would be most welcome
Best Regards
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 09:23 AM
Actually.. if you're just trying to filter based on the current company, you don't have to run a lookup script at all.
In your dynamic qualifer, you can just have this one line:
return "company=" + current.company;
When this is the case, I prefer to simplify the whole thing and use an "advanced" reference qualifier instead of dynamic:
javascript:"company=" + current.company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 12:29 PM
My peers laugh at me because I make it a personal challenge to write one-liner codes that get the job done.
Yes, I spend inordinate amounts of time doing so.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 02:39 PM
One letter variables != One line of code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2025 09:45 AM
I was able to list and search the large set of data in my catalog item with this reference qualifier condition. Thanks for posting this!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 09:46 AM
Is there a typo in there ?
return "sys_idIN" + services.join(",");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 10:11 AM
Thank you all.
I would still like to get the original script include working - as it forms the basis for other more complex queries.
(and I think it would be an excellent example for others)
Valor,
I tried your suggestion - return "sys_idIN" + services.join(","); - but that looks like a typo to me ? Anyhow it returned nothing
Can anyone explain why gs.log, gs.print, etc. are not logging anything ?
It's almost as if the Script is not being called