<?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: Arcade exp in Editing Form: Add 1 to last added value in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354665#M1212</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/477089"&gt;@EDUARDOARDILARINCON&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp; for you reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my "code" is a very modest count($layer)+1 that works until a feature is deleted so it cannot be a solution.&lt;BR /&gt;&lt;BR /&gt;I need to pick the last value added in a field in the table and add 1 for the feature that I am adding.&lt;/P&gt;&lt;P&gt;If the last&amp;nbsp; bench has "500" code, the next is going to be 501.&lt;BR /&gt;I am not too familiar with the calculations and variables, and the result is that I am more confused than ever.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_1-1701272614381.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87455iAF83A40515AAE8DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_1-1701272614381.png" alt="PanGIS_1-1701272614381.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_2-1701272739947.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87456i92B738B09A140C6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_2-1701272739947.png" alt="PanGIS_2-1701272739947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the solution you suggested and it looks acceptable,&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I run the expression, the result is correct (see highlighted=501) as the last inputted no. id 500 in that field, but when I add a new feature in the editor I get 1.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I suppose it is somewhere needed that I ask to order by let's say object ID like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;orderBy&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;newID_web&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;OBJECTID&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;) and my attempt is a disaster as I don't know how to integrate the orderBy (last screenshot)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_3-1701273265795.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87458i8A8C8A942AA67F68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_3-1701273265795.png" alt="PanGIS_3-1701273265795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_6-1701273766854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87463i8E3D9D305E47A841/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_6-1701273766854.png" alt="PanGIS_6-1701273766854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_4-1701273521945.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87461i510047405B514DF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_4-1701273521945.png" alt="PanGIS_4-1701273521945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 16:16:04 GMT</pubDate>
    <dc:creator>PanGIS</dc:creator>
    <dc:date>2023-11-29T16:16:04Z</dc:date>
    <item>
      <title>Arcade exp in Editing Form: Add 1 to last added value</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354046#M1209</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pretty basic question but I am still learning and it looks huge to me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In an ArcGIS online editing forms I created an expression that concatenate 2 fields.&lt;/P&gt;&lt;P&gt;One is the result of a radio button choice, the other is a field that is supposed to calculate this value:&lt;/P&gt;&lt;P&gt;last imputed integer of the same field +1.&lt;BR /&gt;It is a incremental.&lt;/P&gt;&lt;P&gt;I do not manage to do so.&lt;/P&gt;&lt;P&gt;Any tip is appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 14:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354046#M1209</guid>
      <dc:creator>PanGIS</dc:creator>
      <dc:date>2023-11-28T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade exp in Editing Form: Add 1 to last added value</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354055#M1210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/232343"&gt;@PanGIS&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;Here you have a link&amp;nbsp; with information and examples about how to use increment operators:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-increment-operators-x-and-x/td-p/1151101#:~:text=The%20increment%2Fdecrement%20by%20one,initial%20value%20of%20the%20variable" target="_self"&gt;Increment Operators&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If that doesn't work for you it would be helpul to have your code in order to analize it and try to find the best way to achive your goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eduardo&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 14:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354055#M1210</guid>
      <dc:creator>EDUARDOARDILARINCON</dc:creator>
      <dc:date>2023-11-28T14:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade exp in Editing Form: Add 1 to last added value</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354083#M1211</link>
      <description>&lt;P&gt;Do you mean the last calculated value on any other feature? You may need some kind of FeatureSet function and a Filter to grab the most recently edited feature, if that's the case.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354083#M1211</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-11-28T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade exp in Editing Form: Add 1 to last added value</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354665#M1212</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/477089"&gt;@EDUARDOARDILARINCON&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp; for you reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my "code" is a very modest count($layer)+1 that works until a feature is deleted so it cannot be a solution.&lt;BR /&gt;&lt;BR /&gt;I need to pick the last value added in a field in the table and add 1 for the feature that I am adding.&lt;/P&gt;&lt;P&gt;If the last&amp;nbsp; bench has "500" code, the next is going to be 501.&lt;BR /&gt;I am not too familiar with the calculations and variables, and the result is that I am more confused than ever.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_1-1701272614381.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87455iAF83A40515AAE8DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_1-1701272614381.png" alt="PanGIS_1-1701272614381.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_2-1701272739947.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87456i92B738B09A140C6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_2-1701272739947.png" alt="PanGIS_2-1701272739947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the solution you suggested and it looks acceptable,&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I run the expression, the result is correct (see highlighted=501) as the last inputted no. id 500 in that field, but when I add a new feature in the editor I get 1.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I suppose it is somewhere needed that I ask to order by let's say object ID like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;orderBy&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;newID_web&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;OBJECTID&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;) and my attempt is a disaster as I don't know how to integrate the orderBy (last screenshot)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_3-1701273265795.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87458i8A8C8A942AA67F68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_3-1701273265795.png" alt="PanGIS_3-1701273265795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_6-1701273766854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87463i8E3D9D305E47A841/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_6-1701273766854.png" alt="PanGIS_6-1701273766854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_4-1701273521945.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87461i510047405B514DF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_4-1701273521945.png" alt="PanGIS_4-1701273521945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 16:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-exp-in-editing-form-add-1-to-last-added/m-p/1354665#M1212</guid>
      <dc:creator>PanGIS</dc:creator>
      <dc:date>2023-11-29T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

