- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2021 01:53 AM
Hello,
I have a field of type 'Image' which can take an image. I want to display this image on a widget I have. I tried showing it on the widget but it gives me a sys_id instead. How can I show it ?
Thanks
Solved! Go to Solution.
- Labels:
-
Service Desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2021 03:18 AM
Hello Anil,
No worries, I got it solved now. it should be
<img ng-src="{{::data.picture + '.iix'}}"/>
and in server script:
data.picture = grRec.getValue('u_image');
Thank you for the help Anil 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2021 01:57 AM
Hi,
Please refer the below link.
Hope it helps.
Regards,
Ujjawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2021 02:06 AM
Hello Ujjawal,
I am trying to implement a list in the service portal. This list contains the list of all articles of category News. I want to show an image for each article. So in the list there will be rows and each row has an image. But when I display it, it gives me just the sys id even though the field Thumbnail has the image inserted/uploaded.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2021 02:21 AM
Hi Jordan,
You can take a help of OOB widget 'SC Category Page'.
This widget has a logic to get All items details and display as list/card. You can implement same logic to display data and images as per your requirement.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2021 02:06 AM
Also, You can take reference from below widget.
They are using below code
<div class="sub-avatar mia" ng-style="avatarPicture">
and ng-style is being set in client script using below code.
$scope.avatarPicture = {
'background-image': "url('" + response.sys_id + ".iix')",
'color': 'transparent'
};
Hope it helps.
Regards,
Ujjawal