Record producer reference variable shows blank in target record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 08:50 AM
Hi All,
I have a record producer, in which there are 2 reference variables, 'Site' and 'Country'. I am getting the value of country through a GlideAjax call to the Location table, taking value of 'Site' as parameter.
I am setting the value of 'Country' , and can verify the correct value being retrieved through a log statement. However, when the target record is created, the value of 'Country' is coming as blank, but on clicking the 'eye' icon beside the variable in the variable editor, it shows the correct record, i.e. the display value is blank but the actual value is not.
Could you please help in getting the proper display value in the reference field in the variable editor on the target record?
Adding the screenshots below for clarity. In example below, 'United States' should be displayed in the 'Country' field on selecting the Site.
On clicking 'eye' icon beside 'Country', I can see the record is correct.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 09:08 AM
Make sure the display attribute is set to true on the desired dictionary entry on the table. So go to the country table and look at the name column and make sure display is set to true. It sounds like you may not have a display column defined.
If my answer has helped in any way, kindly mark it as helpful/correct as applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 09:45 AM
Hi Brian,
Thanks for the reply.
I have checked for the same, and Display is already set to true for this column. Any other inputs would be highly appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 09:48 AM
Hi,
Is this for the portal view or native. If portal then check HI doc for the same. If native can you check if there exits any onLoad() script once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 10:02 AM
Hi Jaspal,
This is for native view only. I checked there are no onLoad() client script related to these variables.