<?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 How to retrieve selected feature from widget? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782928#M2864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am customizing RelatedTableCharts widget. I want to get the info (coordinate/id) of the selected feature (point) before the widget is open. So that when I select a point (to show pop ups, related table), then open the widget, the chart of the point is already plotted without selecting the point again.&lt;/P&gt;&lt;P&gt;I believe the on click method won't works.&lt;/P&gt;&lt;P&gt;Or another way around, by triggering pops up. Open widget&amp;gt;select point&amp;gt;then both chart and pops up come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the on click method won't works.&lt;/P&gt;&lt;P&gt;Please advise. I have been looking this for days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chepez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2018 12:13:44 GMT</pubDate>
    <dc:creator>LopezChepez</dc:creator>
    <dc:date>2018-09-02T12:13:44Z</dc:date>
    <item>
      <title>How to retrieve selected feature from widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782928#M2864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am customizing RelatedTableCharts widget. I want to get the info (coordinate/id) of the selected feature (point) before the widget is open. So that when I select a point (to show pop ups, related table), then open the widget, the chart of the point is already plotted without selecting the point again.&lt;/P&gt;&lt;P&gt;I believe the on click method won't works.&lt;/P&gt;&lt;P&gt;Or another way around, by triggering pops up. Open widget&amp;gt;select point&amp;gt;then both chart and pops up come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the on click method won't works.&lt;/P&gt;&lt;P&gt;Please advise. I have been looking this for days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chepez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2018 12:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782928#M2864</guid>
      <dc:creator>LopezChepez</dc:creator>
      <dc:date>2018-09-02T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve selected feature from widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782929#M2865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Chepez,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;The way to go about this is to get a reference to the layer and use the&amp;nbsp;&lt;/SPAN&gt;getSelectedFeatures method. Assuming it is a FeatureLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2018 22:00:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782929#M2865</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-02T22:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve selected feature from widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782930#M2866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I also have this question, as I can get selected features using getSelectedFeatures on a FeatureLayer, but cannot use it on a mapImageLayer.&lt;/P&gt;&lt;P&gt;The select widget can select features on a mapImageLayer and highlight them. Once it's done, is it possible to get those features?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2020 10:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782930#M2866</guid>
      <dc:creator>ClémentLaskar</dc:creator>
      <dc:date>2020-09-17T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve selected feature from widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782931#M2867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you select a sublayer of a ArcGISMapServiceLayer then a graphic display layer is created by the widget. The way you get the select graphic is to call the SelectionManagers&amp;nbsp;getDisplayLayer method (which returns&amp;nbsp;a GraphicsLayer) using the ID of the sub layer and then get that graphics array from that layers graphics property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-retrieve-selected-feature-from-widget/m-p/782931#M2867</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-09-17T13:00:06Z</dc:date>
    </item>
  </channel>
</rss>

