- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 11:14 PM
Hello experts
I am facing a issue with a script include I am using in for a advanced reference qualifier. The customer I am working with is using the Service Desk Call application. If they the Call type is set to incident, they should be able to choose a service, a category and a subcategory. Currently I have a reference field (Category and Subcategory) that is doing a lookup on the sys_choice table. In the script include I have added a query to get all the relevante categories and returning them, but the reference field is not populated. Pictures to follow:
Script include:
Catefory reference specification:
Category field specification:
Can anyone assist me in finding my error? Do I have to return something else than the label?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 11:33 PM
Your script might be stopping when it hits the undefined 'current' on line 11. Try passing current as another argument when you call your function.
This is how I would define the Script Include. Then call it with javascript: new GSS_Call_Categories().getRefQual(current)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:31 AM
It looks good... Is it working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:33 AM
Yes, thank you so much!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 02:02 AM
I do not think it should work.
string_return is collection of labels, but you are returning sys_id's with labels.
Instead of obj.label you should push obj.sys_id.
Thanks,
Jagarnath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 02:16 AM
That is true, I also had to change that.