Why am I getting 'No Preview available'?

Sana10
Kilo Contributor

Hi Community,

 

Reference Icon not showing preview

We have a requirement where we need to populate other fields with the correct data when clicking on selected location.For this I have written
script include and on change client script, It is working fine I can populate the data in the field.We have a List, Edit, Disable ACL on this field.
Problem is whenever this variable is getting auto populated it is not showing preview on refrence icon.

Please help me to sort out this. since I have to deploy this as soon as possible.

find_real_file.png

Thanks.

11 REPLIES 11

Hi sana,

 

it seems that you are doing something wrong,

first in onchange client script use 'newvalue' insted of g_form.getValue("location"));

 

now tell me, suit/Area field where it is referring and what is its value i mean database name,

 

first compare sys_ids from script include which you are returning and same sys_id is present on your ref_table.

 

e.g 214 is present already in table then only it will give you record info.

 

whenever you are trying to set value on reference field set proper sys_id to field.

 

par=par.parent;

you are not using this par variable anywhere more.

Thanks

 

 

 

 

 

 

 

asifnoor
Kilo Patron

Hi Sana,

Kindly refer to this link and check if your table is configured properly with the sys_popup view

https://docs.servicenow.com/bundle/istanbul-platform-administration/page/administer/field-administration/task/t_FieldsDisplayed.html

Hello Sana,

I have seen that you have marked the comment as helpful. Could you also accept the comment as a correct answer so that the question is moved to the solved list.

Anurag Tripathi
Mega Patron
Mega Patron

It is a broken link, the related record is deleted somehow that is why it is showing like this.

-Anurag