Record producer reference variable shows blank in target record

Supratik1
Giga Contributor

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.

find_real_file.png

 

 

On clicking 'eye' icon beside 'Country', I can see the record is correct.

find_real_file.png

4 REPLIES 4

BryanS413339635
Tera Guru

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!

Supratik1
Giga Contributor

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.

 

 

Jaspal Singh
Mega Patron
Mega Patron

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.

Supratik1
Giga Contributor

Hi Jaspal,

 

This is for native view only. I checked there are no onLoad() client script related to these variables.