reference qualifier issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 05:49 AM
The requirement is based on the portfolio value digital product values need to show in the form.
The portfolio is dot walked from Product Group.
For example: a Portfolio belongs to “vision”, and related digital product values need to be shown to select.
Digital product and Product Group both are reference fields in the form.
I tried the below approach.
Create an onChange Client script on the Product Group field.
From the above client script passing product group sys_id to script include.
Tried the above script in the background script by passing hardcode sys_id to the product group, and I am getting a result.
But I used the same script I called in dictionary override it is not working.
When I click on the magnifier icon on the form, I can all the records from the base class cmdb_ci_service.
Thanks & regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 05:59 AM
Hi,
In your client script you are using GlideAjax with getXMLAnswer.
So in your callback function you can simply write
var answer = response; // this should resolve your issue.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 05:59 AM
in your script include update this line which is the last line
return 'sys_idIN' + result;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 06:12 AM
you are using same script include from client + server, so you will have to modify the line which accepts taxo
to filter from dictionary override you are not sending any group value as function parameter, you need to pass that so that filtering works fine
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 11:02 PM
Hi Ankur
Thanks for your response , could you please let me know to pass the parameter from client script to script include.