<?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: Best practice for managing feature selection between Features widget and Editor widget  in same application? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1677924#M88067</link>
    <description>&lt;P&gt;I guess that is one way to handle it for handling selections one widget at a time, thanks for the response!&lt;BR /&gt;&lt;BR /&gt;It would be nice if there was a global selection widget that just passes the selection to all active widgets or of your choosing. Sometimes its nice to look at the nicely formatted popup while you are editing the attributes of that feature. I'll keep exploring and see if I can come up with a solution.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jan 2026 19:16:46 GMT</pubDate>
    <dc:creator>ClangDevGuy</dc:creator>
    <dc:date>2026-01-14T19:16:46Z</dc:date>
    <item>
      <title>Best practice for managing feature selection between Features widget and Editor widget  in same application?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1676440#M88040</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I'm building an enterprise application using the ArcGIS Maps SDK for JavaScript (v4.x) that requires both the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Features widget&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(for displaying feature information) and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Editor widget&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for editing capabilities.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Both widgets have their own selection/interaction behavior, and I'm finding conflicts when trying to use them together. When a user clicks on a feature:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Features widget wants to display the popup/info panel&lt;/LI&gt;&lt;LI&gt;The Editor widget also responds to selection for editing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This creates a confusing UX where it's unclear which widget "owns" the selection, and switching between viewing and editing modes isn't intuitive.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;What I'm looking for:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I'd like to implement a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;global/unified selection mechanism&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Allows a single feature selection to be shared across both widgets&lt;/LI&gt;&lt;LI&gt;Provides clear mode switching (view vs. edit)&lt;/LI&gt;&lt;LI&gt;Maintains a consistent selection state across the application&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I know there is a the&amp;nbsp;&lt;STRONG&gt;Select&lt;/STRONG&gt; widget in ExB, but has anyone implemented something similar for JavaScript applications?&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 18:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1676440#M88040</guid>
      <dc:creator>ClangDevGuy</dc:creator>
      <dc:date>2026-01-07T18:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for managing feature selection between Features widget and Editor widget  in same application?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1676470#M88041</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/optional-off-switch-for-edit-widget/idi-p/1655133/jump-to/first-unread-message" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/optional-off-switch-for-edit-widget/idi-p/1655133/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've built an editing on/off switch before. When editing is turned off, it loops through the editable feature layers and sets their &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#editingEnabled" target="_self"&gt;editingEnabled&lt;/A&gt; property to false. It does the opposite when editing is turned on.&lt;/P&gt;&lt;P&gt;A related idea would be to create a toggle switch to change what the select function does. All of the reactiveUtils functions return a watchHandle that can be deleted with the .remove() method. So, you can wrap your create editing/identifying events into a function, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const makeEditing = () =&amp;gt; {
   const handle = reactiveUtils.on(() =&amp;gt; viewElement,
  "arcgisViewClick",
  (event) =&amp;gt; {
    doStuff(event)
   }
  return handle
}&lt;/LI-CODE&gt;&lt;P&gt;Then have your switch delete the old handle and make a new one like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (editingOn) {
   currentHandle.remove()
   currentHandle = makeEditing()
} else {
   currentHandle.remove()
   currentHandle = makeIdentifying()
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Jan 2026 19:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1676470#M88041</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2026-01-07T19:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for managing feature selection between Features widget and Editor widget  in same application?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1677924#M88067</link>
      <description>&lt;P&gt;I guess that is one way to handle it for handling selections one widget at a time, thanks for the response!&lt;BR /&gt;&lt;BR /&gt;It would be nice if there was a global selection widget that just passes the selection to all active widgets or of your choosing. Sometimes its nice to look at the nicely formatted popup while you are editing the attributes of that feature. I'll keep exploring and see if I can come up with a solution.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 19:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-practice-for-managing-feature-selection/m-p/1677924#M88067</guid>
      <dc:creator>ClangDevGuy</dc:creator>
      <dc:date>2026-01-14T19:16:46Z</dc:date>
    </item>
  </channel>
</rss>

