The CreatorCon Call for Content is officially open! Get started here.

Workspace UI action with print function

Marina15
Tera Expert

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