<?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: Editor and Templatepicker Creation in Custom Widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716912#M18876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Margo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;The map is long since loaded once your widget is created so you will never get a map.on load event fired inside your widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 15:08:57 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-05-10T15:08:57Z</dc:date>
    <item>
      <title>Editor and Templatepicker Creation in Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716910#M18874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a custom Widget that is added to a WAB Developer Edition application. I am adding the editor and template widget to a bodyPanel div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main widget – GeoCapture gets loaded through the config.json inclusion. The GeoCapture Widget loads a dropdown menu that allows a uses to select what they want to do – 1) Add New Feature 2) Select Existing Feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Depending on the menu pick a second widget is created that has the UI for either 1) Add New Feature 2) Select Existing Feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Add New Feature widget:&lt;/P&gt;&lt;P&gt;1) I create and startup the search widget&lt;/P&gt;&lt;P&gt;2)Create the editor and templatepicker widgets and start the widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not get the&lt;SPAN&gt; templatepicker &lt;/SPAN&gt; templates displayed after editor and templatepicker widgets have been created (&lt;STRONG&gt;see image&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;In the debugging tools for the AddWidget around line 201, I can see that at “featureLayers: templateLayers,” I have layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that the issue is that the editor and template picker are not getting instantiated and are not running widget startup on the map onLoad event. I likely need to do something like this “this.map.on("Load", lang.hitch(this, 'editWidgetCreate'));” to my Add New Feature widget. But I am not sure how to hitch to a separate widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions!&lt;/P&gt;&lt;P&gt;-Margo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 20:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716910#M18874</guid>
      <dc:creator>MargoBlosser1</dc:creator>
      <dc:date>2017-05-09T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and Templatepicker Creation in Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716911#M18875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering/fighting something similar, but you are far ahead of me. Newbie question. How did you know how to create a panel div where you could bring the editor and template picker div's in? I was looking to do something similar and i'm just getting started. Any suggestions or references would be very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 15:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716911#M18875</guid>
      <dc:creator>ScottLehto2</dc:creator>
      <dc:date>2017-05-10T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and Templatepicker Creation in Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716912#M18876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Margo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;The map is long since loaded once your widget is created so you will never get a map.on load event fired inside your widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 15:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716912#M18876</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-10T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and Templatepicker Creation in Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716913#M18877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;Make a templated widget and load your UI. Look at&amp;nbsp; 'dojo/text!./widget.html','dojo/text!./themes/uiAdd.html','dojo/text!./themes/uiSelect.html', in the require statement. Think of the widget.html as the main html. I then load the different UIs when I load the widgets that I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to load the editor template&amp;nbsp;during the map load event to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hopping to be able to hitch the map load event to the Add&amp;nbsp;widget scope but not sure how to do it so I created work around and loadded editor widget during map load event and swap out UIs from view created during load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a snippet of my Widget UI&lt;/P&gt;&lt;P&gt;&amp;lt;div id="MenuNode" data-dojo-attach-point="MenutNode"&amp;gt; &lt;BR /&gt; &amp;lt;div class="headerPanel"&amp;gt;&lt;BR /&gt; &amp;lt;table&amp;gt;&lt;BR /&gt; &amp;lt;tr width="300px"&amp;gt;&lt;BR /&gt; &amp;lt;td style="padding:10px;"&amp;gt;&lt;BR /&gt; &amp;lt;font color="white"&amp;gt;Step 1. Select Input Method&amp;lt;/font&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="bodyPanel" style="height:auto"&amp;gt;&lt;BR /&gt; &amp;lt;table align="center" style="padding:10px;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td style="padding:5px;"&amp;gt;&lt;BR /&gt; &amp;lt;select data-dojo-type="dijit/form/FilteringSelect" id="fruit" name="fruit" style="" data-dojo-attach-event="onChange:uiSelector"&amp;gt;&lt;BR /&gt; &amp;lt;option value="Add"&amp;gt;Add New Feature&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;option value="Select"&amp;gt;Select Existing Feature&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;option value="Update"&amp;gt;Update Features&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Margo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 15:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716913#M18877</guid>
      <dc:creator>MargoBlosser1</dc:creator>
      <dc:date>2017-05-10T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and Templatepicker Creation in Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716914#M18878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. This will help. A couple more newb questions if you don't mind. In the JavaScript file you reference the &lt;/P&gt;&lt;P&gt;domConstruct.empty(this.ResultsNode); is this a node that is created by this line of code or is this referring to an HTML element declared in your widget.html file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when you say your main widget – "GeoCapture gets loaded through the config.json inclusion.", How can one get information on that?lol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-and-templatepicker-creation-in-custom/m-p/716914#M18878</guid>
      <dc:creator>ScottLehto2</dc:creator>
      <dc:date>2017-05-10T19:44:02Z</dc:date>
    </item>
  </channel>
</rss>

