UI page to display record details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2023 03:21 PM
I'm working on a requirement to create a UI page that takes catalog item as input and display info of catalog item from Maintain item table.
Also a way to call this UI page from Catalog item itself, so UI page should take catalog item id as input when called.
Below is my html script but this is direct display , I'm able to add input variable as well but not get info when changed.
Any inputs ?
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<div style="font-weight:bold;font-size:20px;; padding-left:500px">Catalog Item details</div>
<g:evaluate jelly="true">
var nameSCI='';
var sd='';
var gr = new GlideRecord('sc_cat_item');
gr.addQuery('sys_id','ff6933fedbd4a45014670010ba9619bf');
gr.query();
if(gr.next()){
nameSCI = gr.name.toString();
sd = gr.short_description;
}
</g:evaluate>
<table class="table table-bordered">
<tr style="background-color:#428BCA; color:#FFFFFF;">
<td>Title</td>
<td>Value</td>
</tr>
<tr>
<td style="font-weight:bold">Name</td>
<td>${nameSCI}</td>
</tr>
<tr>
<td style="font-weight:bold">Short Description</td>
<td>${sd}</td>
</tr>
</table>
</j:jelly>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 08:34 PM
Can you explain your business requirement here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2023 07:05 AM
We would like to display additional details for a catalog item, we don't want to display all on catalog item page so I thought redirecting user to a UI page from catalog item page hyperlink and display would be better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 10:39 AM