<?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 Web AppBuilder Edit Widget has blank Attribute edit window on repeat click. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-appbuilder-edit-widget-has-blank-attribute/m-p/515494#M48082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran across this behavior in the Edit widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User clicks on a point.&amp;nbsp; &lt;BR /&gt;Attribute Inspector edit window displays fields names and values to edit.&lt;BR /&gt;User closes attribute window.&lt;BR /&gt;User clicks on same point (without clicking anywhere else first)&lt;BR /&gt;Attribute Inspector edit window displays a blank canvas, no field names and no values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I've found the line that causes this problem in widget.js:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;_updateSelectedFeature: function(selectedFeature) {&lt;BR /&gt;&amp;nbsp; if (selectedFeature) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectedFeature.getLayer().applyEdits(null, [selectedFeature]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Commenting out the next line makes the problem go away.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.editor._clearSelection();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;BR /&gt;},&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I haven't found any new problems caused by this change, but I won't swear there aren't any.&amp;nbsp;&amp;nbsp; Post back if you try this and find an issue.&lt;BR /&gt;&lt;BR /&gt;FYI: If the user clicks somewhere else on the map, then clicks on the original point again, it will work without this code change, in case you just need a workaround...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 May 2017 13:01:21 GMT</pubDate>
    <dc:creator>DavidWendelken</dc:creator>
    <dc:date>2017-05-01T13:01:21Z</dc:date>
    <item>
      <title>Web AppBuilder Edit Widget has blank Attribute edit window on repeat click.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-appbuilder-edit-widget-has-blank-attribute/m-p/515494#M48082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran across this behavior in the Edit widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User clicks on a point.&amp;nbsp; &lt;BR /&gt;Attribute Inspector edit window displays fields names and values to edit.&lt;BR /&gt;User closes attribute window.&lt;BR /&gt;User clicks on same point (without clicking anywhere else first)&lt;BR /&gt;Attribute Inspector edit window displays a blank canvas, no field names and no values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I've found the line that causes this problem in widget.js:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;_updateSelectedFeature: function(selectedFeature) {&lt;BR /&gt;&amp;nbsp; if (selectedFeature) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectedFeature.getLayer().applyEdits(null, [selectedFeature]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Commenting out the next line makes the problem go away.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.editor._clearSelection();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;BR /&gt;},&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I haven't found any new problems caused by this change, but I won't swear there aren't any.&amp;nbsp;&amp;nbsp; Post back if you try this and find an issue.&lt;BR /&gt;&lt;BR /&gt;FYI: If the user clicks somewhere else on the map, then clicks on the original point again, it will work without this code change, in case you just need a workaround...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 13:01:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-appbuilder-edit-widget-has-blank-attribute/m-p/515494#M48082</guid>
      <dc:creator>DavidWendelken</dc:creator>
      <dc:date>2017-05-01T13:01:21Z</dc:date>
    </item>
  </channel>
</rss>

