<?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 Popup selectedFeatureIndex goes to 0 after custom action in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209129#M78568</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a popup for cluster point data.&amp;nbsp; When I open the popup for a cluster location it provides the summary page in popup along with the rest of the features.&amp;nbsp; If I scroll to a feature and click a custom action button that I wrote, after the action is complete it will go back to the summary page- selectedFeatureIndex = 0.&amp;nbsp; I have tried setting the index to the selected featue in the action, but it is not working.&amp;nbsp; Any ideas on how to prevent this behavior.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 13:53:11 GMT</pubDate>
    <dc:creator>Steve_Dale</dc:creator>
    <dc:date>2022-09-02T13:53:11Z</dc:date>
    <item>
      <title>Popup selectedFeatureIndex goes to 0 after custom action</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209129#M78568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a popup for cluster point data.&amp;nbsp; When I open the popup for a cluster location it provides the summary page in popup along with the rest of the features.&amp;nbsp; If I scroll to a feature and click a custom action button that I wrote, after the action is complete it will go back to the summary page- selectedFeatureIndex = 0.&amp;nbsp; I have tried setting the index to the selected featue in the action, but it is not working.&amp;nbsp; Any ideas on how to prevent this behavior.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 13:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209129#M78568</guid>
      <dc:creator>Steve_Dale</dc:creator>
      <dc:date>2022-09-02T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Popup selectedFeatureIndex goes to 0 after custom action</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209184#M78571</link>
      <description>&lt;P&gt;Can you provide a repro of this. If I use the custom action in this sample it doesn't seem to behave like that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=popup-actions" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=popup-actions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can't tell what might be happening in your situation.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 15:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209184#M78571</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-09-02T15:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Popup selectedFeatureIndex goes to 0 after custom action</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209224#M78572</link>
      <description>&lt;P&gt;The popup is using cluster point features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am adding an action button to a layer pop up.&amp;nbsp; After getting to a selected feature through the pop up list the action button appears.&amp;nbsp; The action uses the selected feature attributes to query another layer and displays results in a handlebar div.&amp;nbsp; After calling that action the selectedFeatureIndex goes to 0 and the summary content is displayed.&lt;/P&gt;&lt;P&gt;I tried setting the pop selectedFeatureIndex to see if I can maintain the selected feature in the popup.&lt;/P&gt;&lt;P&gt;view.popup.viewModel.selectedFeatureIndex = 1;&amp;nbsp; //example.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Summary page after clicking on cluster" style="width: 540px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50283i44C4758732F716AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="popup1.png" alt="Summary page after clicking on cluster" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Summary page after clicking on cluster&lt;/span&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select the feature" style="width: 506px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50276i0C893500192255B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="popup2.png" alt="Select the feature" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Select the feature&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Click work order" style="width: 519px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50277i631E07066A68C6BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="popup3.png" alt="Click work order" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Click work order&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Returns to this popup" style="width: 540px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50279i8885013E3011A881/image-size/large?v=v2&amp;amp;px=999" role="button" title="popup4.png" alt="Returns to this popup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Returns to this popup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-selectedfeatureindex-goes-to-0-after-custom/m-p/1209224#M78572</guid>
      <dc:creator>Steve_Dale</dc:creator>
      <dc:date>2022-09-02T16:34:30Z</dc:date>
    </item>
  </channel>
</rss>

