<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged create</title>
<link>https://overflow.efficy.io/?qa=tag/create</link>
<description>Powered by Question2Answer</description>
<item>
<title>How would I create a new widget? Is there a how to guide?</title>
<link>https://overflow.efficy.io/?qa=2631/how-would-i-create-a-new-widget-is-there-a-how-to-guide</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I need to integrate the result of a query into a new widget.&lt;br&gt;
What's the best practice to do this? There is nothing in edn!?&lt;/p&gt;

&lt;p&gt;This is what I did, but I think I am missing something here:&lt;/p&gt;

&lt;p&gt;Edit MacroWidgetsCustom.txt and add somthing like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;CustomerAnniversaries {[&amp;lt;%LoadScript(&quot;serverscripts/Global.js&quot;)%&amp;gt;                                     
    &amp;lt;%RunQuery(id=&quot;CustomerAnniversaries&quot;, store=&quot;59&quot;, SQL=&quot;exec  ADMINALS.CUSTOM_CONT_ANNIVERSARIES :p1;&quot;, Param1=&quot;%%GetUserKey()&quot;)%&amp;gt;
    &amp;lt;%GetDataGrid(query=&quot;CustomerAnniversaries&quot;, columndefs=&quot;GridColumns.txt&quot;, entity=&quot;CONT&quot;, noheader=true, count=-1, columns=&quot;SampleColumn1,SampleColumn2,SampleColumn3,SampleColumn4&quot;)%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then edit:MacroDashBoardCustom.txt and add&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&amp;lt;%Macro(&quot;WidgetTemplate59&quot;, $MACRO$=&quot;TodayWidget&quot;, $COLLAPSE$=&quot;0&quot;)%&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;like &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ContainerWidgetsDefault3 {[
&amp;lt;%Macro(&quot;WidgetTemplate59&quot;, $MACRO$=&quot;TodayWidget&quot;, $COLLAPSE$=&quot;0&quot;)%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&quot;Refresh Settings&quot; in Admin....&lt;/p&gt;

&lt;p&gt;Bute the Widget won't show up the the widget list ...&lt;br&gt;
What is wrong here?&lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
Tim&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2631/how-would-i-create-a-new-widget-is-there-a-how-to-guide</guid>
<pubDate>Wed, 26 Jul 2017 15:07:54 +0000</pubDate>
</item>
</channel>
</rss>