<?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: CalculationMode in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150064#M41019</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/462706"&gt;@AdriannaBarton&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Documentation for calculationMode can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm#ESRI_SECTION1_FC295EA0A9354DCFA970B1D0B30D4DF4" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm#ESRI_SECTION1_FC295EA0A9354DCFA970B1D0B30D4DF4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Auto is the default when not specified. Using&amp;nbsp;&lt;SPAN&gt;calculationMode=auto will not make any difference to not using it at all, as it will be same behavior in 3.13 and 3.14, where we auto applies rules to work out if the calculation should be run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Always and manual will provide the additional functionality not possible before in 3.13.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Phil.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 08:12:35 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-03-03T08:12:35Z</dc:date>
    <item>
      <title>CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1149996#M41010</link>
      <description>&lt;P&gt;With the new 3.14 release I have read that calculationMode is now a usable parameter. However, I cannot find any example documentation eanywhere on this , and after trying it in my forms it doe not appear to be working. In the esri::bind:parameters column&amp;nbsp; I am putting: calculationMode=auto&lt;/P&gt;&lt;P&gt;Is that the correct syntax? What is the default calculationMode when no mode is entered?&lt;/P&gt;&lt;P&gt;Attached is the most detailed description I have found but no examples are included in that description.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 00:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1149996#M41010</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-03-03T00:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150064#M41019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/462706"&gt;@AdriannaBarton&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Documentation for calculationMode can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm#ESRI_SECTION1_FC295EA0A9354DCFA970B1D0B30D4DF4" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm#ESRI_SECTION1_FC295EA0A9354DCFA970B1D0B30D4DF4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Auto is the default when not specified. Using&amp;nbsp;&lt;SPAN&gt;calculationMode=auto will not make any difference to not using it at all, as it will be same behavior in 3.13 and 3.14, where we auto applies rules to work out if the calculation should be run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Always and manual will provide the additional functionality not possible before in 3.13.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Phil.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 08:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150064#M41019</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-03T08:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150085#M41024</link>
      <description>&lt;P&gt;thank you for your response Phil. The link provided is not working:(&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 06:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150085#M41024</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-03-03T06:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150094#M41029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/462706"&gt;@AdriannaBarton&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;Sorry about that. I accidently pasted the dev link to our internal doc site. I have updated the link above to the public doc site.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 08:13:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150094#M41029</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-03T08:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150280#M41042</link>
      <description>&lt;P&gt;Thanks Phil!&lt;/P&gt;&lt;P&gt;Another question about these calculationModes- all of the documentation says these should only effect a recalcuations - so a calculation with the manual setting should be calculating once, correct? And only recalculating when the button is pressed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a new issue within a repeat where I am creating a serial # for each repeat. This is how we have had it working perfectly before the update. It seems fine when I add 2+ repeats, but if I go back to the first repeat, the PHOTOS_Serial calculation is re-running, I put calculationMode=manual in the esri::bind:parameters&amp;nbsp; for this fields and then it doesn't run whatsoever. I have attached the calculations I have and the fields. Please let me know why this isn't working. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 18:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150280#M41042</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-03-03T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150285#M41044</link>
      <description>&lt;P&gt;Here is an image of what happens if I take 3 images and return to the first one. All of the serial #'s become the highest value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 18:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150285#M41044</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-03-03T18:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150482#M41059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/462706"&gt;@AdriannaBarton&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for pointing out the oversight in the documentation, we will have that fixed for the next update. The &lt;EM&gt;calculationMode&lt;/EM&gt; actually applies to the first calculation, as well as subsequent recalculations. Therefore if you use manual, no calculation will be run the first time, until the button is pressed. The explanation of this was correct in the blog post, just not in the online documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/what-s-new-in-arcgis-survey123-february-2022/ba-p/1147290" target="_blank"&gt;What's new in ArcGIS Survey123 (February 2022) - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As for the issue you are seeing with your sum() calculation in the repeat, this is expected. It actually was not working correctly before, and values were not being updated when they should have been in 3.13 or earlier, a bug we fixed.&lt;/P&gt;&lt;P&gt;If you use a reference in a calculation to a field inside the same repeat, for a value that comes from the repeat or other records in that same repeat, the &lt;EM&gt;sum()&lt;/EM&gt; will update after new values are added to other records. The best way to do what you are wanting, it to use &lt;EM&gt;position(..)&lt;/EM&gt; and/or &lt;EM&gt;indexed-repeat() &lt;/EM&gt;functions, to ensure the value is only updated once and for that current repeat record you are on. You can also use the &lt;EM&gt;once()&lt;/EM&gt; function in combination to ensure it only runs once also. See below documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_9F07ECB9F1C341CF8A05AF54B1B011B0" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_9F07ECB9F1C341CF8A05AF54B1B011B0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you search the forums there are many users also doing something similar to what you are after, and have successfully used &lt;EM&gt;position(..), indexed-repeat()&lt;/EM&gt; and &lt;EM&gt;once()&lt;/EM&gt; to achieve this across repeats.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150482#M41059</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-03T23:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: CalculationMode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150845#M41074</link>
      <description>&lt;P&gt;Thank you Phil! The position(..) worked like a charm. I appreciate the help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 19:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculationmode/m-p/1150845#M41074</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-03-04T19:45:28Z</dc:date>
    </item>
  </channel>
</rss>

