Web map Arcade expression to calculate field with sequential number

720
2
08-03-2020 12:32 PM
AnuSawant
Occasional Contributor II

Hi,

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.

Thanks,

Anu

0 Kudos
2 Replies
XanderBakker
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. 

AnuSawant
Occasional Contributor II

Thanks Xander.

0 Kudos