How to print an UI action and UI page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2023 11:03 PM
If I click on UI action then content should be printed from UI page, something like this I want to implement.
I am new to UI page, please anyone can help me with this, provide steps on what should be done.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2023 11:07 PM
Hello @manoharpatki
You need to use the g_scratchpad for passing the data.
Here you can overview the example
UI Action:
var sys_id=1234;
var vendor='This is the Vendor Name';
var caseNumber = 'abc1234567;
var opsGenieOnCallInfo = {
sys_id: sysID,
vendor: vendorName,
caseNumber: caseNumber
};
g_scratchpad.opsOnCallInfo = opsGenieOnCallInfo;
UI Page:
var passedData;
if (g_scratchpad.opsOnCallInfo){
passedData = g_scratchpad.opsOnCallInfo;
}
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2023 11:09 PM
what did you start with?
refer this link to get started
GlideDialogWindow: Advanced Popups Using UI Pages
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2023 05:50 AM
Hello @manoharpatki
If you find my response as helpful, plz mark it as Accept. It will help future users.
Regards,
Samaksh