<?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: Widget Setting Function returns null for props.useMapWidgetIds in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1251807#M80056</link>
    <description>&lt;P&gt;Worked after changing:&lt;BR /&gt;&amp;lt;JimuMapViewSelector&lt;BR /&gt;onChange={onMapWidgetSelected}&lt;BR /&gt;useMapViewIds={props.useMapWidgetIds?.asMutable()}&lt;BR /&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;to&lt;BR /&gt;&lt;BR /&gt;&amp;lt;MapWidgetSelector&lt;BR /&gt;onSelect={onMapWidgetSelected}&lt;BR /&gt;useMapWidgetIds={props.useMapWidgetIds}&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Actually props.useMapWidgetIds still appeared to be undefined when debugging... but the Select Map widget section of the settings populated with the map(s) on the page with the latter option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 10:55:18 GMT</pubDate>
    <dc:creator>Gurunara</dc:creator>
    <dc:date>2023-01-26T10:55:18Z</dc:date>
    <item>
      <title>Widget Setting Function returns null for props.useMapWidgetIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1251801#M80055</link>
      <description>&lt;P&gt;Trying to create settings.tsx for Experience Builder Widget version 1.10.&lt;/P&gt;&lt;P&gt;Using function syntax:&lt;/P&gt;&lt;P&gt;export default function Setting(props: AllWidgetSettingProps&amp;lt;IMConfig&amp;gt;){&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However props.useMapWidgetIds, which should contain list of maps on the current page, is null.&lt;/P&gt;&lt;P&gt;In version 1.05 function syntax works, and props.useMapWidgetIds is not null.&lt;/P&gt;&lt;P&gt;Also in 1.10 if use class syntax,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;export default class Setting extends React.PureComponent&amp;lt;&lt;BR /&gt;AllWidgetSettingProps&amp;lt;IMConfig&amp;gt;,&lt;BR /&gt;any&lt;BR /&gt;&amp;gt; {&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;then&amp;nbsp;this.props.useMapWidgetIds is not null/undefined.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 10:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1251801#M80055</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2023-01-26T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Setting Function returns null for props.useMapWidgetIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1251807#M80056</link>
      <description>&lt;P&gt;Worked after changing:&lt;BR /&gt;&amp;lt;JimuMapViewSelector&lt;BR /&gt;onChange={onMapWidgetSelected}&lt;BR /&gt;useMapViewIds={props.useMapWidgetIds?.asMutable()}&lt;BR /&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;to&lt;BR /&gt;&lt;BR /&gt;&amp;lt;MapWidgetSelector&lt;BR /&gt;onSelect={onMapWidgetSelected}&lt;BR /&gt;useMapWidgetIds={props.useMapWidgetIds}&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Actually props.useMapWidgetIds still appeared to be undefined when debugging... but the Select Map widget section of the settings populated with the map(s) on the page with the latter option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 10:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1251807#M80056</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2023-01-26T10:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Setting Function returns null for props.useMapWidgetIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1274700#M80721</link>
      <description>&lt;P&gt;Worked after changing:&lt;BR /&gt;&amp;lt;JimuMapViewSelector&lt;BR /&gt;onChange={onMapWidgetSelected}&lt;BR /&gt;useMapViewIds={props.useMapWidgetIds?.asMutable()}&lt;BR /&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;to&lt;BR /&gt;&lt;BR /&gt;&amp;lt;MapWidgetSelector&lt;BR /&gt;onSelect={onMapWidgetSelected}&lt;BR /&gt;useMapWidgetIds={props.useMapWidgetIds}&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Actually props.useMapWidgetIds still appeared to be undefined when debugging... but the Select Map widget section of the settings populated with the map(s) on the page with the latter option.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 14:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-setting-function-returns-null-for-props/m-p/1274700#M80721</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2023-04-03T14:39:00Z</dc:date>
    </item>
  </channel>
</rss>

