<?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: DataSourceComponent EB 1.7 Bug? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/datasourcecomponent-eb-1-7-bug/m-p/1134270#M3514</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/515882"&gt;@D_P&lt;/a&gt;&amp;nbsp;We will take a look at this issue and try to fix it in the next release.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 03:11:56 GMT</pubDate>
    <dc:creator>TonghuiMing</dc:creator>
    <dc:date>2022-01-17T03:11:56Z</dc:date>
    <item>
      <title>DataSourceComponent EB 1.7 Bug?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/datasourcecomponent-eb-1-7-bug/m-p/1133361#M3506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm developing a custom widget with Experience Builder 1.7. Since the new version the DataSourceComponent ignores my query when features are selected via the url (e.g. when you select features on a map and refresh the web browser afterwards). In my example code all features of the data source that are selected after the initial loading of the experience are returning a geometry but the once that are loaded by the url parameters don't. I guess that's due to the fact that returnGeometry is false by default and the query doesn't get executed. DataSourceInfo however show's the correct query for the data source. In EB v. 1.6 everything works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const query: FeatureLayerQueryParams = {
  where: '1=1',
  outFields: ['*'],
  returnGeometry: true,
};

const dataSoureUpdateHandler = (ds: DataSource, info: IMDataSourceInfo): JSX.Element =&amp;gt; {
  if (!ds || ds.getStatus() !== DataSourceStatus.Loaded) {
    return (
      &amp;lt;&amp;gt;
        &amp;lt;div&amp;gt;
          &amp;lt;p&amp;gt;Data source loading&amp;lt;/p&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/&amp;gt;
    );
  }

  const fieldName: string = props.useDataSources[0].fields[0];
  const geometry = ds.getSelectedRecords().map((record) =&amp;gt; {
    return record.getGeometry();//null for all records that are selected by the url
  });
  console.log(geometry);
  return &amp;lt;&amp;gt;&amp;lt;/&amp;gt;;
};

&amp;lt;DataSourceComponent useDataSource={props.useDataSources[0]} query={query} widgetId={props.id}&amp;gt;
  {dataSoureUpdateHandler}
&amp;lt;/DataSourceComponent&amp;gt;;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/datasourcecomponent-eb-1-7-bug/m-p/1133361#M3506</guid>
      <dc:creator>D_P</dc:creator>
      <dc:date>2022-01-13T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: DataSourceComponent EB 1.7 Bug?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/datasourcecomponent-eb-1-7-bug/m-p/1134270#M3514</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/515882"&gt;@D_P&lt;/a&gt;&amp;nbsp;We will take a look at this issue and try to fix it in the next release.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 03:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/datasourcecomponent-eb-1-7-bug/m-p/1134270#M3514</guid>
      <dc:creator>TonghuiMing</dc:creator>
      <dc:date>2022-01-17T03:11:56Z</dc:date>
    </item>
  </channel>
</rss>

