<?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: Bug? Editor Widget &amp; Search Widget not playing nice together in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174533#M16199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/40178"&gt;Rickey Fite&lt;/A&gt;​ no, not any more. I was having issues with all of this so I decided to have two "apps" one for just editing and then a second one which my users would use to view the data. By doing this , I got around the need for using the initEditing function that was part of the sample in my original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I *think* you can resolve your issue by doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map.on("layers-add-result", function(event) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initEditing(event);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example, the event variable from the layers-add-result event will contain a layers collection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 19:07:51 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2015-12-09T19:07:51Z</dc:date>
    <item>
      <title>Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174527#M16193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having just added the Search widget into my project, I discovered some unexpected behavior. My app is patterned after &lt;A href="https://developers.arcgis.com/javascript/jssamples/ed_default_editingwidget.html"&gt;this sample&lt;/A&gt;. To start, I add a new feature by clicking on one of the predefined options found in the editor widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="aeInfoWindow01.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/122783_aeInfoWindow01.jpg" style="width: 620px; height: 504px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, I go over to my Search Widget and look for an address (using a locally hosted Geocoder service):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="aeInfoWindow02.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/122784_aeInfoWindow02.jpg" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I close the geocoded popup and clear the contents of the widget by clicking the X in the input field. Now, if I go back to the point I previously created (or any other feature for that matter), the infoWindow that comes up is a copy of the geocoded result infoWindow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="aeInfoWindow03.jpg" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/122785_aeInfoWindow03.jpg" style="width: 620px; height: 392px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's pretty weird. The only way to "reset" things is to reload the page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's bad enough &lt;A _jive_internal="true" href="https://community.esri.com/thread/50245"&gt;I can't use custom infoWindows when I using the Editor widget&lt;/A&gt; but this makes things even worse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174527#M16193</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-08-17T21:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174528#M16194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pinging ESRI about this. I can't log a bug with support thanks to my organization &amp;amp; they way ESRI has set up bug reporting. This is using v3.14 of the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 15:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174528#M16194</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-10-07T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174529#M16195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to resolve these type of conflicts you need to destroy and recreate the Editor after closing the search window.&amp;nbsp; I realize this seems clunky but its the suggested approach for working with the Editor and info window content at version 3.x of the JSAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see an example of how this works look at the code starting at line 217 in this file: &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/edit-template/blob/master/js/main.js" title="https://github.com/Esri/edit-template/blob/master/js/main.js"&gt;edit-template/main.js at master · Esri/edit-template · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174529#M16195</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-10-07T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174530#M16196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Kelly. Yes- It's very clunky but I think I got it to work in my application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174530#M16196</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-10-07T17:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174531#M16197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you got it to work. We should have a more elegant solution for this type of thing in the 4.x api. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174531#M16197</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-10-07T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174532#M16198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting an error of :&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Cannot read property 'layers' of undefined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your initEditing function start with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; function initEditing(event) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureLayerInfos = arrayUtils.map(event.layers, function (layer) {&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174532#M16198</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-12-11T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174533#M16199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/40178"&gt;Rickey Fite&lt;/A&gt;​ no, not any more. I was having issues with all of this so I decided to have two "apps" one for just editing and then a second one which my users would use to view the data. By doing this , I got around the need for using the initEditing function that was part of the sample in my original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I *think* you can resolve your issue by doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map.on("layers-add-result", function(event) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initEditing(event);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example, the event variable from the layers-add-result event will contain a layers collection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:07:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174533#M16199</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-12-09T19:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174534#M16200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/23538" target="_blank"&gt;Steve Cole&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var search = new Search({ 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,
&amp;nbsp; enableInfoWindow: false,
&amp;nbsp; enableHighlight: false,
&amp;nbsp; enableLabel: false
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "search"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; search.startup(); &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stopped the infowindow from being created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174534#M16200</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-12-11T09:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Editor Widget &amp; Search Widget not playing nice together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174535#M16201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you're up and running again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:53:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-editor-widget-search-widget-not-playing-nice/m-p/174535#M16201</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-12-10T15:53:59Z</dc:date>
    </item>
  </channel>
</rss>

