<?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: Once function interrupts concat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1356895#M53240</link>
    <description>&lt;P class=""&gt;Still not satisfied with the workaround. Elsewhere, someone recommended to try calculationMode=whenEmpty. After several permeations of readonly and calculationMode=whenEmpty with various calculations none working as wanted. The workaround works but isn't preferred since it leaves it open to edits.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 23:08:15 GMT</pubDate>
    <dc:creator>NickAddison</dc:creator>
    <dc:date>2023-12-07T23:08:15Z</dc:date>
    <item>
      <title>Once function interrupts concat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1355378#M53147</link>
      <description>&lt;P&gt;So I have a survey, wherein hydrant data is being recorded. I need new asset id's to be assigned and not changed during future edits, which is why I added once(). I'd also like for the instance name to be based on the asset id + short address (just placed it in the survey and not the settings for ease of testing, I know I'll need to move it).&lt;/P&gt;&lt;P&gt;However, after I added the once() function to the asset id calculation, the concat would no longer pull the fire_district_abrev (ex. -20232230-1535). If I remove the once() function the concat works as intended (ex. WBD-20232230-1535), but now a new asset id is assigned when edited.&lt;/P&gt;&lt;P&gt;Where am I going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="30%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="10%" height="25px"&gt;Type&lt;/TD&gt;&lt;TD width="10%" height="25px"&gt;Name&lt;/TD&gt;&lt;TD width="10%" height="25px"&gt;Calculation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="25px"&gt;text&lt;/TD&gt;&lt;TD width="10%" height="25px"&gt;asset_id&lt;/TD&gt;&lt;TD width="10%"&gt;once(concat(${fire_district_abrev}, format-date(now(), '-%Y%m%d-%H%M')))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="47px"&gt;text&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;inbox_id&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;concat(${asset_id}, " - ", ${short_address})&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="113px"&gt;text&lt;/TD&gt;&lt;TD width="10%" height="113px"&gt;fire_district_abrev&lt;/TD&gt;&lt;TD width="10%" height="113px"&gt;pulldata("@layer", "getValueAt", "attributes.FireDistrictAbrev", "url", ${hydrant_location})&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 21:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1355378#M53147</guid>
      <dc:creator>NickAddison</dc:creator>
      <dc:date>2023-12-06T21:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Once function interrupts concat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1355736#M53167</link>
      <description>&lt;P&gt;As a work around, if I set readonly to&amp;nbsp;&lt;EM&gt;null&lt;/EM&gt; for both, and remove the once() function on the asset_id, then upon viewing or editing the data the asset_id and inbox_id will remain as the original value, but are open to user edits (definitely not preferred).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, if I set&amp;nbsp;readonly to&amp;nbsp;&lt;EM&gt;yes&lt;/EM&gt;, and remove the once() function, it locks it from user edits during viewing or editing, but assigns a new asset_id and inbox_id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still exploring the issues and solutions though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 16:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1355736#M53167</guid>
      <dc:creator>NickAddison</dc:creator>
      <dc:date>2023-12-01T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Once function interrupts concat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1356895#M53240</link>
      <description>&lt;P class=""&gt;Still not satisfied with the workaround. Elsewhere, someone recommended to try calculationMode=whenEmpty. After several permeations of readonly and calculationMode=whenEmpty with various calculations none working as wanted. The workaround works but isn't preferred since it leaves it open to edits.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 23:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1356895#M53240</guid>
      <dc:creator>NickAddison</dc:creator>
      <dc:date>2023-12-07T23:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Once function interrupts concat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1372769#M54167</link>
      <description>&lt;P&gt;I can see you have made a lot of tests in the attached spreadsheet. It appears to me that the combination that best suits your stated requirement is test_4_1 (ie: readonly=yes, expression without the once, and calculationMode=whenEmpty). what is it about that combination that doesn't work for you?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 01:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/once-function-interrupts-concat/m-p/1372769#M54167</guid>
      <dc:creator>MarikaVertzonis</dc:creator>
      <dc:date>2024-01-22T01:17:39Z</dc:date>
    </item>
  </channel>
</rss>

