<?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 Handling a Scene Data Source with a Related Map Data Source in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/handling-a-scene-data-source-with-a-related-map/m-p/1710097#M749</link>
    <description>&lt;P&gt;ExB Developer Edition 1.17.0&lt;/P&gt;&lt;P&gt;I'm working through a bug where a set of map service layers in a Scene is filtered out of my&amp;nbsp;DataSourceSelector. My "hideDs" function takes in the current DataSource JSON, the dataSourceId of the JMV and a geometry type string, then does this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const hideDataSource = (dsJson: IMDataSourceJson, jmvDataSourceId: string, geomType: GeometryType) =&amp;gt; {
    const ds = DataSourceManager.getInstance().getDataSource(dsJson.id);
    return (ds.parentDataSource?.id !== jmvDataSourceId) || ds.getGeometryType() !== geomType
}&lt;/LI-CODE&gt;&lt;P&gt;This works fine with my test Maps but when I try with a Scene, it looks like the "parentDataSource" is a completely different source with a "WEB_MAP" type, which means my filter breaks. Is this expected behaviour with Scenes in ExB? Is there a way to safely correlate the two data sources? Would selecting this source even work in widgets?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2026 00:46:40 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2026-06-26T00:46:40Z</dc:date>
    <item>
      <title>Handling a Scene Data Source with a Related Map Data Source</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/handling-a-scene-data-source-with-a-related-map/m-p/1710097#M749</link>
      <description>&lt;P&gt;ExB Developer Edition 1.17.0&lt;/P&gt;&lt;P&gt;I'm working through a bug where a set of map service layers in a Scene is filtered out of my&amp;nbsp;DataSourceSelector. My "hideDs" function takes in the current DataSource JSON, the dataSourceId of the JMV and a geometry type string, then does this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const hideDataSource = (dsJson: IMDataSourceJson, jmvDataSourceId: string, geomType: GeometryType) =&amp;gt; {
    const ds = DataSourceManager.getInstance().getDataSource(dsJson.id);
    return (ds.parentDataSource?.id !== jmvDataSourceId) || ds.getGeometryType() !== geomType
}&lt;/LI-CODE&gt;&lt;P&gt;This works fine with my test Maps but when I try with a Scene, it looks like the "parentDataSource" is a completely different source with a "WEB_MAP" type, which means my filter breaks. Is this expected behaviour with Scenes in ExB? Is there a way to safely correlate the two data sources? Would selecting this source even work in widgets?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2026 00:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/handling-a-scene-data-source-with-a-related-map/m-p/1710097#M749</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2026-06-26T00:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling a Scene Data Source with a Related Map Data Source</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/handling-a-scene-data-source-with-a-related-map/m-p/1710284#M750</link>
      <description>&lt;P&gt;Whoops, false alarm! I left another, virtually identical map in my test experience that was tripping things up. The real issue is that map service layers have the entire service as their parent, so I need to use this modified listing to check for that:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const hideDataSource = (dsJson: IMDataSourceJson, jmvDataSourceId: string, geomType: GeometryType) =&amp;gt; {
    const ds = dsManager.getDataSource(dsJson.id);
    return !((ds.parentDataSource?.id ?? "").startsWith(jmvDataSourceId)) || ds.getGeometryType() !== geomType
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Jun 2026 15:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/handling-a-scene-data-source-with-a-related-map/m-p/1710284#M750</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2026-06-26T15:37:02Z</dc:date>
    </item>
  </channel>
</rss>

