Web map Arcade expression to calculate field with sequential number

08-03-2020 12:32 PM
Occasional Contributor II


I have published a web map and app for editing a polygon. So every time when someone draws a new polygon the Serial_No field should calculate the next sequential ID. 

e.g. if the last number for the polygon after sorting the field would be PDP_578 then the new polygon should calculate with PDP_579.

Is it possible? Appreciate any help about this.



3 Replies
Esri Esteemed Contributor

Hi Anu Sawant ,

You would normally accomplish this using a Calculation Attribute Rule triggered by an Insert, but this functionality is not yet available in ArcGIS Online (it is in ArcGIS Enterprise and ArcGIS Pro). You can perform a calculation and when you detect a feature that has no Seriel_No, you could assign the next value to it, but you would need to schedule this as a task with a certain frequency and it will not be executed directly after a user creates a new feature. 

Occasional Contributor II

Thanks Xander.

0 Kudos
New Contributor

Thank you for this information. Has there been any improvements to this?