<?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 Creating Runtime Datasources  in Experience Builder 1.19 in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1666037#M21647</link>
    <description>&lt;P&gt;I just updated to 1.19 and I have encountered a major issue with creating runtime datasources. Something has changed in the &lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/data-source-widgets/runtime-data-source-without-saving-to-config" target="_self"&gt;coding path&lt;/A&gt; as my Custom Widget was working in 1.18. I don't see anything related to this documented in the Breaking Changes. The behavior I am getting is extremely odd. The layers created this way will first load as expected then unload themselves in Preview Mode. See screen recording:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6385113314112w1138h540r464" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6385113314112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6385113314112w1138h540r464');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6385113314112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Stranger still, this does not happen in the Build Mode. The layers do not automatically unload even when using Live View and I can switch between sets of layers without issue. The advanced datasource functionality is not available in the Map Layers Widget, but the Select Widget works as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1763155586883.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143818i0A3916D2EE7F57CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1763155586883.png" alt="JeffreyThompson2_0-1763155586883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am able to use Select and send the results to a Table Widget in Live View.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_1-1763155646978.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143819iC7F95F8677BA4FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_1-1763155646978.png" alt="JeffreyThompson2_1-1763155646978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have not done much troubleshooting yet. I just wanted to get this question out so the Dev Team has something to think about over the weekend.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 21:32:45 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2025-11-14T21:32:45Z</dc:date>
    <item>
      <title>Creating Runtime Datasources  in Experience Builder 1.19</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1666037#M21647</link>
      <description>&lt;P&gt;I just updated to 1.19 and I have encountered a major issue with creating runtime datasources. Something has changed in the &lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/data-source-widgets/runtime-data-source-without-saving-to-config" target="_self"&gt;coding path&lt;/A&gt; as my Custom Widget was working in 1.18. I don't see anything related to this documented in the Breaking Changes. The behavior I am getting is extremely odd. The layers created this way will first load as expected then unload themselves in Preview Mode. See screen recording:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6385113314112w1138h540r286" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6385113314112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6385113314112w1138h540r286');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6385113314112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Stranger still, this does not happen in the Build Mode. The layers do not automatically unload even when using Live View and I can switch between sets of layers without issue. The advanced datasource functionality is not available in the Map Layers Widget, but the Select Widget works as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1763155586883.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143818i0A3916D2EE7F57CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1763155586883.png" alt="JeffreyThompson2_0-1763155586883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am able to use Select and send the results to a Table Widget in Live View.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_1-1763155646978.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143819iC7F95F8677BA4FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_1-1763155646978.png" alt="JeffreyThompson2_1-1763155646978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have not done much troubleshooting yet. I just wanted to get this question out so the Dev Team has something to think about over the weekend.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 21:32:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1666037#M21647</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-11-14T21:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Runtime Datasources  in Experience Builder 1.19</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1667929#M21732</link>
      <description>&lt;P&gt;Hey Jeffrey, somewhat unrelated but did you have issues importing 1.18 applications into 1.19? I posted about it here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-import-1-18-experiences-into-1-19-developer/m-p/1665681" target="_blank"&gt;https://community.esri.com/t5/arcgis-experience-builder-questions/can-t-import-1-18-experiences-into-1-19-developer/m-p/1665681&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I also have a bunch of widgets that utilize runtime datasources, so probably will be broken for me when I am finally able to update.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 17:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1667929#M21732</guid>
      <dc:creator>ericsamson_tract</dc:creator>
      <dc:date>2025-11-21T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Runtime Datasources  in Experience Builder 1.19</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1667988#M21734</link>
      <description>&lt;P&gt;It appears that my projects upgraded without issue. Although, a number of Widgets broke in the upgrade. In addition to the issue above, I needed to fix the import statements for all my Widgets using the Components API. I also forked off the ESRI Search Widget back in Experience Builder 1.10-1.12 and it refused to load after the update. I'm not very surprised that happened and I have not started looking into that problem at all.&lt;/P&gt;&lt;P&gt;I have not gotten back to troubleshooting my upgrade yet.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 20:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1667988#M21734</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-11-21T20:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Runtime Datasources  in Experience Builder 1.19</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1668299#M21761</link>
      <description>&lt;P&gt;Well, I don't fully understand what's going on here and I don't think this solution will be helpful to anyone else, but I will try to explain what I have found the best I can.&lt;/P&gt;&lt;P&gt;In my Widget, I would first load a set of FeatureLayers and sometimes other layer types bundled as a GroupLayer, then loop through the GroupLayer and create Datasources for the FeatureLayers individually. This would cause two copies of the layers to load, one in a Group and the other with a Datasource. So I would remove the GroupLayer to get it back to a single copy. Was that the best way to do this? I don't know. Probably not. But it was effective in Experience Builder 1.14-18.&lt;/P&gt;&lt;P&gt;There was some historic reason behind the code operating this way as, I had been grouping the layers back in 1.12, but I discovered that I could not use GroupLayers as Datasources when I starting turning them into Datasources in 1.14.&lt;/P&gt;&lt;P&gt;In 1.19, it appears that the&amp;nbsp;dataSourceJsonCreator.createDataSourceJsonByJSAPILayer() function does not work with FeatureLayers within a GroupLayer. But, you can pass the entire GroupLayer into the function and get a valid Datasource for the component layers with the layers in a GroupLayer.&lt;/P&gt;&lt;P&gt;It's still super weird that I am getting different results in Live View vs. Preview. I have no idea what that is about.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-3-0-full-settings-panel-support/ta-p/1570992" target="_self"&gt;The version of the Widget on ESRI Community&lt;/A&gt; does not have this issue and appears to still work as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 20:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/creating-runtime-datasources-in-experience-builder/m-p/1668299#M21761</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-11-24T20:11:12Z</dc:date>
    </item>
  </channel>
</rss>

