Workspace UI action with print function
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 06:19 AM
Hello.
I have ui action with frame
var frame = document.createElement("iframe");
The URL is the UI page and I'm passing parameters there.
frame.style.display = "none";
var url = new GlideURL("xxxxx");
url.addParam('sysparm_num', g_form.getValue('number'));
..........
frame.src=url.getURL();
frame.onload = function() {
frame.contentWindow.print();
setTimeout(frame.remove, 100);
};
document.body.appendChild(frame);
When i click on the bottom frame opens and i can print the content. It works for platform view
But this logic doesn't work in the workspace, how can I implement the same logic for the workspace?
Thanks in advance!
0 REPLIES 0