<?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 Setting InfoWindow content disables Editor Widget attributes display in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204836#M18979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same issue this user posted about a year ago, which apparently didn't get a resolution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/56331-Custom-infoTemplate-conflicts-with-default-editor-widget-infoTemplate"&gt;http://forums.arcgis.com/threads/56331-Custom-infoTemplate-conflicts-with-default-editor-widget-infoTemplate&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application has both an editor widget and a custom identify tool. The identify uses the standard map.infoWindow.setContent() to display the information about features clicked. The application uses the Popup dijit for the InfoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I only interact with the editor widget in displaying/editing attributes, it works fine. However if I use the identify tool to display information in the infoWindow, and then go back to the editor to select and display attributes, the infoWindow still shows the content last set by the identify tool. Oddly enough, the infowindow's title does get set properly - but not the content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used Chrome debugger's pretty-print function and it appears that the editor widget calls _onEditFeature when displaying the attributes. I see that function calls infoWindow.setTitle, but not .setContent. I know that if I don't use the identify and go to edit different features, the infoWindow content does get updated with each feature's attributes. So I suspect the code is calling individual elements within the form that it has created, but of course that form no longer exists if another tool has replaced the infoWindow contents. In any event, it seems that this is a problem for any application that uses the editor widget and any other function with the InfoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to try to do a destroy on the editor whenever the identify tool is used (then recreate when reopening the editor), but that is either going to introduce dependencies I don't want or more complex code. If anyone has a better solution please share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW I haven't worked for Esri for over 4 years, but haven't been able to get the Forum folks to remove the icon from my posts!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 05:01:40 GMT</pubDate>
    <dc:creator>BryanBaker</dc:creator>
    <dc:date>2013-04-11T05:01:40Z</dc:date>
    <item>
      <title>Setting InfoWindow content disables Editor Widget attributes display</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204836#M18979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same issue this user posted about a year ago, which apparently didn't get a resolution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/56331-Custom-infoTemplate-conflicts-with-default-editor-widget-infoTemplate"&gt;http://forums.arcgis.com/threads/56331-Custom-infoTemplate-conflicts-with-default-editor-widget-infoTemplate&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application has both an editor widget and a custom identify tool. The identify uses the standard map.infoWindow.setContent() to display the information about features clicked. The application uses the Popup dijit for the InfoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I only interact with the editor widget in displaying/editing attributes, it works fine. However if I use the identify tool to display information in the infoWindow, and then go back to the editor to select and display attributes, the infoWindow still shows the content last set by the identify tool. Oddly enough, the infowindow's title does get set properly - but not the content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used Chrome debugger's pretty-print function and it appears that the editor widget calls _onEditFeature when displaying the attributes. I see that function calls infoWindow.setTitle, but not .setContent. I know that if I don't use the identify and go to edit different features, the infoWindow content does get updated with each feature's attributes. So I suspect the code is calling individual elements within the form that it has created, but of course that form no longer exists if another tool has replaced the infoWindow contents. In any event, it seems that this is a problem for any application that uses the editor widget and any other function with the InfoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to try to do a destroy on the editor whenever the identify tool is used (then recreate when reopening the editor), but that is either going to introduce dependencies I don't want or more complex code. If anyone has a better solution please share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW I haven't worked for Esri for over 4 years, but haven't been able to get the Forum folks to remove the icon from my posts!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 05:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204836#M18979</guid>
      <dc:creator>BryanBaker</dc:creator>
      <dc:date>2013-04-11T05:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Setting InfoWindow content disables Editor Widget attributes display</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204837#M18980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had exactly the same problem. The only solution I have found is to destroy the editor widget every time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 09:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204837#M18980</guid>
      <dc:creator>DavideLimosani</dc:creator>
      <dc:date>2013-04-11T09:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting InfoWindow content disables Editor Widget attributes display</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204838#M18981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ended up not using the Editor Widget. Instead I implemented custom editing using the TemplatePicker and AttributeInspector, and placed the AttributeInspector in a separate dialog. It would be helpful if ESRI would modify the EditorWidget to support this scenario, or at least document this issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I also noticed that the templates in the TemplatePicker do not draw if the div that contains them is set to display:none. So either I have to delay initializing the template picker until the user clicks to display it (which was suggested in another post), or use visibility:hidden instead of display:none.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204838#M18981</guid>
      <dc:creator>BryanBaker</dc:creator>
      <dc:date>2013-04-26T15:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting InfoWindow content disables Editor Widget attributes display</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204839#M18982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Davide,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exactly the same problem. Could you please post how did you implement the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 05:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-infowindow-content-disables-editor-widget/m-p/204839#M18982</guid>
      <dc:creator>abdelabdel</dc:creator>
      <dc:date>2014-11-25T05:04:23Z</dc:date>
    </item>
  </channel>
</rss>

