<?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: Using Multiple DataSources in a FieldSelector Widget in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1344018#M9077</link>
    <description>&lt;P&gt;Further testing of this has indicated the problem is slightly different from what I described above.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is actually happening is that every single time I select a different data source, and then select a field on that data source, it immediately switches back to the first data source and its fields inside the dropdown. Now, if I click nothing else except "Save," it does properly add the right fields to the right data source. However, I cannot add any more fields to that specific data source, as I can only select the first data source afterwards.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 17:48:11 GMT</pubDate>
    <dc:creator>JeremyKolassa</dc:creator>
    <dc:date>2023-10-31T17:48:11Z</dc:date>
    <item>
      <title>Using Multiple DataSources in a FieldSelector Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1343988#M9075</link>
      <description>&lt;P&gt;I have been tasked with creating a custom search widget for a client inside Experience Builder. This widget will have to search multiple data sources simultanenously, and moreover, search multiple fields within each data source, then spit out an autocomplete/typeahead list a user can select from.&lt;BR /&gt;&lt;BR /&gt;In order to make this as easy to configure as possible for our users, I am using the DataSourceSelector widget in settings, and using the FieldSelector widget to let them select what fields for which data source the widget should search. However, I'm running into a UI issue, where after I click on the dropdown for the data sources, and select a different one, the name in the dropdown does not update, and it only shows the fields (including selected ones) from the first data source. Weirdly, though, if I hit "save" (just for a test), it actually takes the selected fields for the first data source and applies them to the other data source I selected (but which doesn't appear in the UI.)&lt;BR /&gt;&lt;BR /&gt;Below is the code I am using to put the FieldSelector into the settings panel. I am not sure if I am using it incorrectly -- the documentation for this widget is essentially non-existent, and the Storybook page is incomplete. My understanding is that the FieldSelector can handle multiple data sources at once, but am I using the right properties -- correctly -- to make that work? Should I be using one Field Selector widget per data source?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;SettingSection key="data"&amp;gt;
  &amp;lt;SettingRow&amp;gt;&amp;lt;h4&amp;gt;Data Source&amp;lt;/h4&amp;gt;&amp;lt;/SettingRow&amp;gt;
  &amp;lt;SettingRow&amp;gt;
	&amp;lt;DataSourceSelector 
		isMultiple
		mustUseDataSource
		types={supportedTypes} 
		onChange={onDataSourceChange} 
		useDataSources={props.useDataSources} 
		widgetId={props.id} /&amp;gt;
  &amp;lt;/SettingRow&amp;gt;
  &amp;lt;SettingRow&amp;gt;&amp;lt;h6&amp;gt;Search Fields&amp;lt;/h6&amp;gt;&amp;lt;/SettingRow&amp;gt;
  &amp;lt;SettingRow&amp;gt;
	&amp;lt;FieldSelector 
		isMultiple={true} 
		useDropdown={true} 
		useMultiDropdownBottomTools={true}
		useDataSources={props.useDataSources} 
		onChange={onSearchFieldsChange} 
		widgetId={props.id}
		selectedFields={props.config.fields || Immutable([])} 
         /&amp;gt;
  &amp;lt;/SettingRow&amp;gt;
&amp;lt;/SettingSection&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 17:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1343988#M9075</guid>
      <dc:creator>JeremyKolassa</dc:creator>
      <dc:date>2023-10-31T17:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple DataSources in a FieldSelector Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1344018#M9077</link>
      <description>&lt;P&gt;Further testing of this has indicated the problem is slightly different from what I described above.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is actually happening is that every single time I select a different data source, and then select a field on that data source, it immediately switches back to the first data source and its fields inside the dropdown. Now, if I click nothing else except "Save," it does properly add the right fields to the right data source. However, I cannot add any more fields to that specific data source, as I can only select the first data source afterwards.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 17:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1344018#M9077</guid>
      <dc:creator>JeremyKolassa</dc:creator>
      <dc:date>2023-10-31T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple DataSources in a FieldSelector Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1344030#M9078</link>
      <description>&lt;P&gt;Based on your requirements, I think all of that can be done in the OOTB Search Widget.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/experience-builder/guide/search-widget/" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/search-widget/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 18:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1344030#M9078</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-10-31T18:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple DataSources in a FieldSelector Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1547309#M15339</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/578567"&gt;@JeremyKolassa&lt;/a&gt;&amp;nbsp;If you went with this approach, were you able to solve the issue you described? I'm facing a similar situation with multiple data sources within the FieldSelector component. When I set fields on a 2nd data source it flips back to the first data source. If I debug in Chrome, I get the final re-render but it seems to update again afterwards.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/using-multiple-datasources-in-a-fieldselector/m-p/1547309#M15339</guid>
      <dc:creator>JarrettGreen</dc:creator>
      <dc:date>2024-10-09T19:49:55Z</dc:date>
    </item>
  </channel>
</rss>

