<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Adding a Widget/Formatter to Agent Workspace on Madrid in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705119#M362045</link>
    <description>&lt;P&gt;So I want to try to add a custom element on agent workspace.&amp;nbsp; However I'm not sure this is possible yet, I'm not having success so I thought I'd ask.&lt;/P&gt;
&lt;P&gt;Here's what I've tried on my PDI;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Adding a UI Macro, Formatter[type=formatter], and then adding the formatter on the form view "Workspace"&lt;/LI&gt;&lt;LI&gt;Adding a UI Macro, Formatter[type=component], and then adding the formatter on the form view "Workspace"&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I am not sure if there's a way to add a SP Widget to the form but that would work too.&lt;/P&gt;
&lt;P&gt;In anycase if anyone has any ideas let me know.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2019 16:19:34 GMT</pubDate>
    <dc:creator>Jace Benson</dc:creator>
    <dc:date>2019-01-30T16:19:34Z</dc:date>
    <item>
      <title>Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705119#M362045</link>
      <description>&lt;P&gt;So I want to try to add a custom element on agent workspace.&amp;nbsp; However I'm not sure this is possible yet, I'm not having success so I thought I'd ask.&lt;/P&gt;
&lt;P&gt;Here's what I've tried on my PDI;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Adding a UI Macro, Formatter[type=formatter], and then adding the formatter on the form view "Workspace"&lt;/LI&gt;&lt;LI&gt;Adding a UI Macro, Formatter[type=component], and then adding the formatter on the form view "Workspace"&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I am not sure if there's a way to add a SP Widget to the form but that would work too.&lt;/P&gt;
&lt;P&gt;In anycase if anyone has any ideas let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 16:19:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705119#M362045</guid>
      <dc:creator>Jace Benson</dc:creator>
      <dc:date>2019-01-30T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705120#M362046</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am also facing the similar issue, if you have found the solution, can you please share the solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;SMD&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:56:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705120#M362046</guid>
      <dc:creator>SMD1</dc:creator>
      <dc:date>2019-07-05T09:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705121#M362047</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;
&lt;P&gt;We have the same issue, and would like to know if you found the solution or recommendation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yang&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 20:41:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705121#M362047</guid>
      <dc:creator>abel91740</dc:creator>
      <dc:date>2019-09-09T20:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705122#M362048</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;PRE&gt;
function onClick(g_form) {
	var url = '/custom_ui_page.do?' + 
		'sysparm_table_name=' + g_form.getTableName() + 
		'&amp;amp;sysparm_number=' + g_form.getValue('number') + 
		'&amp;amp;sysparm_sys_id=' + g_form.getUniqueValue();
	g_modal.showFrame({
		url: url,
		title: 'Custom UI Page',
		size: 'lg'
	});
}

&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 01:44:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705122#M362048</guid>
      <dc:creator>JC Icaro1</dc:creator>
      <dc:date>2019-09-17T01:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705123#M362049</link>
      <description>&lt;P&gt;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 &amp;amp; height) defined. Also, if there is property to define its position not being fixed i.e.the agent can move it through the screen&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:47:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705123#M362049</guid>
      <dc:creator>Gaurav Pai2</dc:creator>
      <dc:date>2020-07-15T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705124#M362050</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="ad6e4a29dbd41fc09c9ffb651f9619f7"&gt;@JC Icaro&lt;/SN-MENTION&gt;&amp;nbsp;How do you call widget in this url?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 07:54:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705124#M362050</guid>
      <dc:creator>Fathima6</dc:creator>
      <dc:date>2020-10-01T07:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705125#M362051</link>
      <description>&lt;P&gt;I think you will need to put your widget into an sp page and then form a url referencing your service portal page within a service portal instead of the UI page URL, eg. /sp?...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 20:28:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705125#M362051</guid>
      <dc:creator>JC Icaro1</dc:creator>
      <dc:date>2020-10-03T20:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Widget/Formatter to Agent Workspace on Madrid</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705126#M362052</link>
      <description>&lt;P&gt;Struggling with this one.&amp;nbsp; We've got a Formatter (UI Macro) that contains angularJS.&amp;nbsp; Works great in classic (Platform) UI and we've got a portal widget that presents the same info on portal pages and now we're trying to get it to work in Agent Workspace.&lt;/P&gt;
&lt;P&gt;I created a UI Page that invokes our UI Macro, but that doesn't work.&amp;nbsp; The modal partially display, but content from the UI Macro (called from the UI Page) never makes it there.&amp;nbsp; In fact, I put a &lt;SPAN style="color: #ff0000;"&gt;jslog('hello world');&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;line of code at the top of our angular logic and it never shows in the console window.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Wondering if I should switch gears and investigate having the modal display our portal widget?&amp;nbsp; Can that even be done and if so, how?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance experts!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 20:14:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-a-widget-formatter-to-agent-workspace-on-madrid/m-p/1705126#M362052</guid>
      <dc:creator>ty_roach</dc:creator>
      <dc:date>2020-11-27T20:14:57Z</dc:date>
    </item>
  </channel>
</rss>

