<?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 Calculation from user input in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/calculation-from-user-input/m-p/1199942#M5051</link>
    <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;I have a score which is calculated by combining multiple fields in the layer multiplied by a parameter for each one:&lt;/P&gt;&lt;P&gt;Score = &lt;STRONG&gt;a&lt;/STRONG&gt; * Field1 +&lt;STRONG&gt; b&lt;/STRONG&gt;*Field2 + &lt;STRONG&gt;c&lt;/STRONG&gt;*Field3&lt;/P&gt;&lt;P&gt;Is there a way for the user to edit values of &lt;STRONG&gt;a, b and c&amp;nbsp;&lt;/STRONG&gt;so that the score can be recalculated on the Application and the metrics and map are updated. I'm thinking on using Data Expressions but I don't se the option of getting user input.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 17:08:24 GMT</pubDate>
    <dc:creator>JoseBaene</dc:creator>
    <dc:date>2022-08-05T17:08:24Z</dc:date>
    <item>
      <title>Calculation from user input</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/calculation-from-user-input/m-p/1199942#M5051</link>
      <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;I have a score which is calculated by combining multiple fields in the layer multiplied by a parameter for each one:&lt;/P&gt;&lt;P&gt;Score = &lt;STRONG&gt;a&lt;/STRONG&gt; * Field1 +&lt;STRONG&gt; b&lt;/STRONG&gt;*Field2 + &lt;STRONG&gt;c&lt;/STRONG&gt;*Field3&lt;/P&gt;&lt;P&gt;Is there a way for the user to edit values of &lt;STRONG&gt;a, b and c&amp;nbsp;&lt;/STRONG&gt;so that the score can be recalculated on the Application and the metrics and map are updated. I'm thinking on using Data Expressions but I don't se the option of getting user input.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:08:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/calculation-from-user-input/m-p/1199942#M5051</guid>
      <dc:creator>JoseBaene</dc:creator>
      <dc:date>2022-08-05T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation from user input</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/calculation-from-user-input/m-p/1200731#M5069</link>
      <description>&lt;P&gt;Hi Jose,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a similar issue where I would like the user to input values as weights for a multiple criteria analysis. I don't have a full solution but am thinking about using sliders in a custom app with calcite or Jimu-UI, I have put this together in the code snippet below but I am not sure how I would connect the value returned in the slider to the attributes.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { CalciteButton, CalciteIcon, CalciteSlider } from 'calcite-components'

const Widget = (props: AllWidgetProps&amp;lt;IMConfig&amp;gt;) =&amp;gt; {
  const text = props.config.text

  const [sliderValue0, setSliderValue0] = React.useState(0)

  return (
    &amp;lt;div className="widget-calcite jimu-widget m-2"&amp;gt;
      &amp;lt;div className="App"&amp;gt;
        &amp;lt;h1&amp;gt;Hello, {text}&amp;lt;/h1&amp;gt;
        &amp;lt;CalciteButton&amp;gt;Test&amp;lt;/CalciteButton&amp;gt;
        &amp;lt;CalciteSlider
          min={0}
          max={100}
          value={sliderValue0}
          step={10}
          onCalciteSliderUpdate={(e) =&amp;gt; setSliderValue0((e.target as 
           any).value)} /&amp;gt;
        &amp;lt;p&amp;gt;The slider currently has a value of {sliderValue0}&amp;lt;/p&amp;gt;&lt;/LI-CODE&gt;&lt;P data-unlink="true"&gt;I think there is a solution in &lt;A href="https://developers.arcgis.com/experience-builder/guide/core-concepts/data-action/" target="_self"&gt;here&lt;/A&gt; but I'm not sure how it would be implemented. Hopefully my response will inspire others to discuss!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 10:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/calculation-from-user-input/m-p/1200731#M5069</guid>
      <dc:creator>AdamCollins4</dc:creator>
      <dc:date>2022-08-09T10:11:16Z</dc:date>
    </item>
  </channel>
</rss>

