<?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 How can I use MultipleExpressionResolveResults or use more than one field in an expression in a custom Experience Builder widget? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-use-multipleexpressionresolveresults-or/m-p/1283097#M6794</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to build a widget that will use two or more fields from a single data source.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've cloned the use-expression widget from Esri's Github&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-expression" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-expression&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's the issue I'm running into.&amp;nbsp; When I try to use two fields in the expression, I get an Invalid Expression error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnPhillipsGeo_0-1682544637274.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69233i2E0C4D077E18DC9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnPhillipsGeo_0-1682544637274.png" alt="JohnPhillipsGeo_0-1682544637274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I could solve this error and use more than one field in the Expression builder, I could parse it out in the Widget.tsx file.&amp;nbsp; However, that isn't working for me so I've been trying another approach.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the API reference, there appears to be a&amp;nbsp;MultipleExpressionResolveResults object.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/experience-builder/api-reference/jimu-core/MultipleExpressionResolveResults" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/api-reference/jimu-core/MultipleExpressionResolveResults&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This appears to be related to the ExpressionResolverComponent.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-core-expressionresolvercomponent--basic" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-core-expressionresolvercomponent--basic&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, in this solution, I cannot combine the individual expressions into an&amp;nbsp;&lt;SPAN&gt;IMExpressionMap to pass into the&amp;nbsp;ExpressionResolverComponent.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help and/or examples of using multiple expressions/fields in a widget would be much appreciated.&amp;nbsp; I can provide my code or snippets on request.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 21:40:53 GMT</pubDate>
    <dc:creator>JohnPhillipsGeo</dc:creator>
    <dc:date>2023-04-26T21:40:53Z</dc:date>
    <item>
      <title>How can I use MultipleExpressionResolveResults or use more than one field in an expression in a custom Experience Builder widget?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-use-multipleexpressionresolveresults-or/m-p/1283097#M6794</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to build a widget that will use two or more fields from a single data source.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've cloned the use-expression widget from Esri's Github&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-expression" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-expression&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's the issue I'm running into.&amp;nbsp; When I try to use two fields in the expression, I get an Invalid Expression error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnPhillipsGeo_0-1682544637274.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69233i2E0C4D077E18DC9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnPhillipsGeo_0-1682544637274.png" alt="JohnPhillipsGeo_0-1682544637274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I could solve this error and use more than one field in the Expression builder, I could parse it out in the Widget.tsx file.&amp;nbsp; However, that isn't working for me so I've been trying another approach.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the API reference, there appears to be a&amp;nbsp;MultipleExpressionResolveResults object.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/experience-builder/api-reference/jimu-core/MultipleExpressionResolveResults" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/api-reference/jimu-core/MultipleExpressionResolveResults&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This appears to be related to the ExpressionResolverComponent.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-core-expressionresolvercomponent--basic" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-core-expressionresolvercomponent--basic&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, in this solution, I cannot combine the individual expressions into an&amp;nbsp;&lt;SPAN&gt;IMExpressionMap to pass into the&amp;nbsp;ExpressionResolverComponent.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help and/or examples of using multiple expressions/fields in a widget would be much appreciated.&amp;nbsp; I can provide my code or snippets on request.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 21:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-use-multipleexpressionresolveresults-or/m-p/1283097#M6794</guid>
      <dc:creator>JohnPhillipsGeo</dc:creator>
      <dc:date>2023-04-26T21:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use MultipleExpressionResolveResults or use more than one field in an expression in a custom Experience Builder widget?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-use-multipleexpressionresolveresults-or/m-p/1309428#M7648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/58269"&gt;@JohnPhillipsGeo&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For different parts of the expressions, you need to use the "+" to combine the results into one string, something like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanJiang_0-1689760199625.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75710i8C85F3E36B9EE770/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanJiang_0-1689760199625.png" alt="DanJiang_0-1689760199625.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 09:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-use-multipleexpressionresolveresults-or/m-p/1309428#M7648</guid>
      <dc:creator>DanJiang</dc:creator>
      <dc:date>2023-07-19T09:50:24Z</dc:date>
    </item>
  </channel>
</rss>

