<?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 Smart Editor widget bug? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168197#M22160</link>
    <description>&lt;P&gt;This is for version 2.23 of WAB.&lt;/P&gt;&lt;P&gt;I noticed that if the template is closed and you open and close the Attribute Table, then you cannot click on any existing feature to edit its attributes.&lt;/P&gt;&lt;P&gt;The reason is because of the conditions shown in the mapclickhandler script.&lt;/P&gt;&lt;P&gt;In the widget.js under the _mapClickHandler function, if the template is not open it defaults to remove the mapClick.&amp;nbsp; So, I commented out the lines 18&amp;amp;19 to prevent that. Is any reason not to comment them out? As far I can see in my app it is working with no issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_mapClickHandler: function (create) {
        if (create === true &amp;amp;&amp;amp; this._attrInspIsCurrentlyDisplayed === false) {
          this.map.setInfoWindowOnClick(false);
          if (this._mapClick === undefined || this._mapClick === null) {
            this._mapClick = on(this.map, "click", lang.hitch(this, this._onMapClick));
          }
          //this._activateTemplateToolbar();
        } else if (create === true &amp;amp;&amp;amp; this._attrInspIsCurrentlyDisplayed === true) {
          if (this._mapClick) {
            this._mapClick.remove();
            this._mapClick = null;
          }
          this.map.setInfoWindowOnClick(true);
          //this._validateAttributes();
        } else {
          if (this._mapClick) {

          //  this._mapClick.remove();
         //   this._mapClick = null;
          }
          this.map.setInfoWindowOnClick(true);
          if (this.drawToolbar) {
            //this._lastDrawnShape = lang.clone(this.drawToolbar._points);
            this.drawToolbar.deactivate();
          }
        }
      },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 02:56:27 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2022-04-27T02:56:27Z</dc:date>
    <item>
      <title>Smart Editor widget bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168197#M22160</link>
      <description>&lt;P&gt;This is for version 2.23 of WAB.&lt;/P&gt;&lt;P&gt;I noticed that if the template is closed and you open and close the Attribute Table, then you cannot click on any existing feature to edit its attributes.&lt;/P&gt;&lt;P&gt;The reason is because of the conditions shown in the mapclickhandler script.&lt;/P&gt;&lt;P&gt;In the widget.js under the _mapClickHandler function, if the template is not open it defaults to remove the mapClick.&amp;nbsp; So, I commented out the lines 18&amp;amp;19 to prevent that. Is any reason not to comment them out? As far I can see in my app it is working with no issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_mapClickHandler: function (create) {
        if (create === true &amp;amp;&amp;amp; this._attrInspIsCurrentlyDisplayed === false) {
          this.map.setInfoWindowOnClick(false);
          if (this._mapClick === undefined || this._mapClick === null) {
            this._mapClick = on(this.map, "click", lang.hitch(this, this._onMapClick));
          }
          //this._activateTemplateToolbar();
        } else if (create === true &amp;amp;&amp;amp; this._attrInspIsCurrentlyDisplayed === true) {
          if (this._mapClick) {
            this._mapClick.remove();
            this._mapClick = null;
          }
          this.map.setInfoWindowOnClick(true);
          //this._validateAttributes();
        } else {
          if (this._mapClick) {

          //  this._mapClick.remove();
         //   this._mapClick = null;
          }
          this.map.setInfoWindowOnClick(true);
          if (this.drawToolbar) {
            //this._lastDrawnShape = lang.clone(this.drawToolbar._points);
            this.drawToolbar.deactivate();
          }
        }
      },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 02:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168197#M22160</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-04-27T02:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor widget bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168471#M22165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If I understand this right, I believe this was added intentionally as we want to prevent editing features unless the Smart Editor widget is open and active. Otherwise, users may click a feature and it will be selected for editing even if Smart Editor is closed, and it will be difficult to view the feature's pop-up in the map.&lt;BR /&gt;&lt;BR /&gt;I'm not sure where the Attribute Table fits into the workflow you are describing. Are you getting any console errors?&lt;/P&gt;&lt;P&gt;Please, are you able to share all the steps to reproduce the issue you are observing so we can try to reproduce it?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168471#M22165</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2022-04-27T18:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor widget bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168493#M22166</link>
      <description>&lt;P&gt;Hi. I think there is a misunderstanding. I was referring to edit existing features.&amp;nbsp; The reason of why I mentioned the Attribute Table is because when you open and close the AT, it triggers the&amp;nbsp;_mapClickHandler function. Since the parameter "Create" is false then it fails the If and else if statements (lines 2 &amp;amp; 8 of the script I attached previously) and it passes to the else statement (line 15) and it removes the mapclick. From that point on, you cannot click on any existing feature to edit its attributes.&lt;/P&gt;&lt;P&gt;To illustrate of what the issue is I am attaching a video that shows the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the beginning, I click some existing features as it is expected the form opens and allows me to edit the feature attributes if I wish. Then, I close the form. Next, I open and close the AT. Now, when I click on any feature I cannot edit any features. Then I access the code and I comment out the two lines in the&amp;nbsp;_mapClickHandler function function. Save the file and reload the website. I open and close the AT and now I can click on any existing feature and edit its attributes.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6305282507112w1280h438r837" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6305282507112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6305282507112w1280h438r837');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6305282507112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168493#M22166</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-04-27T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor widget bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168499#M22167</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp; Thank you for the recording, this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When you click the Attribute Table (or any other widget in your app, actually), the Smart Editor becomes out of focus. You can see this by the red bar at the top of the widget panel. (I know, it's not very intuitive)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_0-1651086466077.png" style="width: 546px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39986i2D3401E5B8C912C5/image-dimensions/546x341?v=v2" width="546" height="341" role="button" title="AlixVezina_0-1651086466077.png" alt="AlixVezina_0-1651086466077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you click the Smart Editor widget panel again, the bar becomes green. If you click the feature to update again, it will be loaded in the attribute inspector.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_1-1651086689163.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39987i75B616D249F35AB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlixVezina_1-1651086689163.png" alt="AlixVezina_1-1651086689163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168499#M22167</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2022-04-27T19:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor widget bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168508#M22168</link>
      <description>&lt;P&gt;ok understood.&amp;nbsp; Yes, not&amp;nbsp;&lt;SPAN&gt;intuitive at all. It is becoming difficult&amp;nbsp;to train users who are not very experienced with web apps to be aware of the red bar. By commenting out those two lines as I mentioned before, I still have not seen any issues. Users can process to edit features after using the AT. Do you see any specific scenario that commenting out those two lines would cause issues?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168508#M22168</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-04-27T19:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor widget bug?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168525#M22169</link>
      <description>&lt;P&gt;Since you are using the Jewelry Box theme and the Smart Editor remains open in the panel at all times, I think your approach should be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-widget-bug/m-p/1168525#M22169</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2022-04-27T20:15:41Z</dc:date>
    </item>
  </channel>
</rss>

