- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2024 01:54 AM - edited ‎10-16-2024 01:57 AM
Hi Developer,
I am running a GlideRecord Query in widget Service script . through the gs.info() i can see the data in session log . but i can not see the data in the html .
Can GlideRecord be used in widget service script?
var item = new GlideRecord('xxxx')
item.addQuery('number','xxxxxxxxx');
item.query();
data.testNext = item.next()
data.testData = item.short_description
gs.info(item.short_description)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2024 08:52 AM
Hi, Can you try with alert or gs.addInfoMessage(); instead of gs.info().
Additionally, refer below code and it's similar to your case. Refer the link with your instance for OOB widget and check Server Script area.
Sample Script:
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2024 08:52 AM
Hi, Can you try with alert or gs.addInfoMessage(); instead of gs.info().
Additionally, refer below code and it's similar to your case. Refer the link with your instance for OOB widget and check Server Script area.
Sample Script:
Suresh.