The Zurich release has arrived! Interested in new features and functionalities? Click here for more

reference qualifier issue

Madhusagar Pal1
Tera Expert

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.

MadhusagarPal1_0-1704808083000.png

 

I tried the below approach.

Create an onChange Client script on the Product Group field.

MadhusagarPal1_1-1704808083008.png

From the above client script passing product group sys_id to script include.

MadhusagarPal1_2-1704808083015.png

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.

MadhusagarPal1_3-1704808083020.png

When I click on the magnifier icon on the form, I can all the records from the base class cmdb_ci_service.

 

Thanks & regards,

6 REPLIES 6

Anil Lande
Kilo Patron

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.

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ankur Bawiskar
Tera Patron
Tera Patron

@Madhusagar Pal1 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Madhusagar Pal1 

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

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur

 

Thanks for your response , could you please let me know to pass the parameter from client script to script include.