<?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>topic Re: TemplatePicker widget in WAB in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/templatepicker-widget-in-wab/m-p/829252#M8136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems as though the documentation is incorrect. Including an array of FeatureLayers outside of the onLoad event works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;templatePicker = new TemplatePicker({&lt;BR /&gt; featureLayers: [&lt;BR /&gt; this.map.getLayer(this.map.graphicsLayerIds[0]),&lt;BR /&gt; this.map.getLayer(this.map.graphicsLayerIds[1]),&lt;BR /&gt; this.map.getLayer(this.map.graphicsLayerIds[2])&lt;BR /&gt; ]&lt;BR /&gt; }, templateNode);&lt;/P&gt;&lt;P&gt;templatePicker.startup();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 15:45:47 GMT</pubDate>
    <dc:creator>JacobNosal</dc:creator>
    <dc:date>2016-12-15T15:45:47Z</dc:date>
    <item>
      <title>TemplatePicker widget in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/templatepicker-widget-in-wab/m-p/829251#M8135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to include the esri/dijit/editing/TemplatePicker widget in my WAB widget, but am having a problem. The documentation states that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;The TemplatePicker must be created and &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/templatepicker-amd.html#startup" style="color: #00629b;"&gt;started&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt; inside the &lt;/SPAN&gt;&lt;STRONG style="color: #4d4d4d; font-weight: bold;"&gt;onLoad&lt;/STRONG&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt; event of the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#event-load" style="color: #00629b;"&gt;map&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt; or the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#event-load" style="color: #00629b;"&gt;layer&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt; for which it is &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;associated." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;However, WAB loads the portal map far before my widget can be opened. How can I access this event or otherwise use the TemplatePicker widget?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;Jacob Nosal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 00:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/templatepicker-widget-in-wab/m-p/829251#M8135</guid>
      <dc:creator>JacobNosal</dc:creator>
      <dc:date>2016-12-15T00:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker widget in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/templatepicker-widget-in-wab/m-p/829252#M8136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems as though the documentation is incorrect. Including an array of FeatureLayers outside of the onLoad event works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;templatePicker = new TemplatePicker({&lt;BR /&gt; featureLayers: [&lt;BR /&gt; this.map.getLayer(this.map.graphicsLayerIds[0]),&lt;BR /&gt; this.map.getLayer(this.map.graphicsLayerIds[1]),&lt;BR /&gt; this.map.getLayer(this.map.graphicsLayerIds[2])&lt;BR /&gt; ]&lt;BR /&gt; }, templateNode);&lt;/P&gt;&lt;P&gt;templatePicker.startup();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 15:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/templatepicker-widget-in-wab/m-p/829252#M8136</guid>
      <dc:creator>JacobNosal</dc:creator>
      <dc:date>2016-12-15T15:45:47Z</dc:date>
    </item>
  </channel>
</rss>

