Hi everyone,
I'm working with a point feature class in a file geodatabase. I want to implement an attribute rule that triggers when a new point is added, with the following requirements:
1. Auto-populate the BLOCK field based on the location of the new pole. I have a polygon layer (BlockBoundary) that contains block boundaries with a BLOCK field.
2. Auto-generate a unique POLEID by identifying the highest existing POLEID value within the same block and incrementing it by 1 for the new feature.
Ideally, the POLEID should follow a padded text format (e.g., "0001", "0002", etc.), and should concatenate the block number with the sequence (e.g., "03-0001"). ( BLOCK and POLEID are in text format
Has anyone implemented a similar rule using Arcade in attribute rules? I'm looking for guidance or a sample script that handles:
Filtering existing features by blocking and calculating the max POLETAGID within that block
Returning a properly formatted new ID
Thanks in advance for your help,
Best regards,
Kabir Ahmad