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

Adding a Widget/Formatter to Agent Workspace on Madrid

Jace Benson
Mega Sage

So I want to try to add a custom element on agent workspace.  However I'm not sure this is possible yet, I'm not having success so I thought I'd ask.

Here's what I've tried on my PDI;

  1. Adding a UI Macro, Formatter[type=formatter], and then adding the formatter on the form view "Workspace"
  2. Adding a UI Macro, Formatter[type=component], and then adding the formatter on the form view "Workspace"

I am not sure if there's a way to add a SP Widget to the form but that would work too.

In anycase if anyone has any ideas let me know.

7 REPLIES 7

SMD1
Kilo Explorer

Hello,

I am also facing the similar issue, if you have found the solution, can you please share the solutions.

 

Thanks

SMD

abel91740
Giga Contributor

Hi there

We have the same issue, and would like to know if you found the solution or recommendation 

 

Thank you 

 

Yang

JC Icaro1
Kilo Guru

I think the only thing you can do right now is to create a Client UI Action which invokes a modal. The modal can show a UI Page or Service Portal page. Here's a sample Workspace Client Script.

function onClick(g_form) {
	var url = '/custom_ui_page.do?' + 
		'sysparm_table_name=' + g_form.getTableName() + 
		'&sysparm_number=' + g_form.getValue('number') + 
		'&sysparm_sys_id=' + g_form.getUniqueValue();
	g_modal.showFrame({
		url: url,
		title: 'Custom UI Page',
		size: 'lg'
	});
}

Hi JC, Thanks for the code. This was pretty helpful to have a overlay screen in workspace. However, is there any documentation for the g_modal API? I couldn't find it. I need to understand if i could have a custom dimensions (width & height) defined. Also, if there is property to define its position not being fixed i.e.the agent can move it through the screen