<?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 issue with repeat values when auto generate a field within editable layer Form in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/issue-with-repeat-values-when-auto-generate-a/m-p/1417277#M12388</link>
    <description>&lt;P&gt;We are creating a tool that will be used to issue new addresses.&amp;nbsp; there are several fields that will auto populate within the editable form.&amp;nbsp; One of these fields is the unique ID given to each address (ADDR_PT_ID).&amp;nbsp; this unique value is generated from the Maximum number in the dataset that corresponds to the ADDR_PT_ID, then a plus 1 is added to next the next number in the series. ( example:&amp;nbsp; the last address entered in the attribute table had an ADDR_PT_ID of 150223, the form would then auto populate the next address that is being entered as 150224.)&amp;nbsp; the problem arises when 2 users are creating addresses at the same time within the same app.&amp;nbsp; It will issue the same ADDR_PT_ID for both users (ex. 150224 and 150224), this results in duplicate IDs for different address.&amp;nbsp; Code is below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;adds&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$featureset&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;adds&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;tots&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Number&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ADDR_PT_ID&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tots&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to force it to recognize that someone else is adding an address at the same time, and have it auto populate different ADDR_PT_IDs for each?&amp;nbsp; have it recognize that someone else is editing the address layer and has already pulled the max number of ADDR_PT_ID.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 Apr 2024 21:34:55 GMT</pubDate>
    <dc:creator>MarkGambordella</dc:creator>
    <dc:date>2024-04-30T21:34:55Z</dc:date>
    <item>
      <title>issue with repeat values when auto generate a field within editable layer Form</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/issue-with-repeat-values-when-auto-generate-a/m-p/1417277#M12388</link>
      <description>&lt;P&gt;We are creating a tool that will be used to issue new addresses.&amp;nbsp; there are several fields that will auto populate within the editable form.&amp;nbsp; One of these fields is the unique ID given to each address (ADDR_PT_ID).&amp;nbsp; this unique value is generated from the Maximum number in the dataset that corresponds to the ADDR_PT_ID, then a plus 1 is added to next the next number in the series. ( example:&amp;nbsp; the last address entered in the attribute table had an ADDR_PT_ID of 150223, the form would then auto populate the next address that is being entered as 150224.)&amp;nbsp; the problem arises when 2 users are creating addresses at the same time within the same app.&amp;nbsp; It will issue the same ADDR_PT_ID for both users (ex. 150224 and 150224), this results in duplicate IDs for different address.&amp;nbsp; Code is below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;adds&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$featureset&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;adds&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;tots&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Number&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ADDR_PT_ID&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tots&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to force it to recognize that someone else is adding an address at the same time, and have it auto populate different ADDR_PT_IDs for each?&amp;nbsp; have it recognize that someone else is editing the address layer and has already pulled the max number of ADDR_PT_ID.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Apr 2024 21:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/issue-with-repeat-values-when-auto-generate-a/m-p/1417277#M12388</guid>
      <dc:creator>MarkGambordella</dc:creator>
      <dc:date>2024-04-30T21:34:55Z</dc:date>
    </item>
  </channel>
</rss>

