Why am I getting 'No Preview available'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 10:08 PM
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.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2019 12:44 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 10:17 PM
Hi Sana,
Refer the following community threads.
"No Preview Available" - How to allow approvers to view the formatted requested item?
No Preview available for a varaible of type reference field on request item?
Regards,
Ajay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 10:21 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2020 08:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 08:19 AM
It is a broken link, the related record is deleted somehow that is why it is showing like this.