AnsweredAssumed Answered

Attribute Assistant - generate unique id based on domain value in another field

Question asked by jonkwong@bgt on Jun 24, 2020
Latest reply on Jun 24, 2020 by jonkwong@bgt

I have parcels with different landuse classes: Business, Residential, etc. I would like to generate a unique id when the parcel is being split. However, I need to generate a different id and counter depending on the landuse class. If Business, then generate B1, B2, B3, etc. If Residential, then generate R1, R2, R3, etc.

 

This is my progress.

 

Table NameField NameValue MethodValue InfoOn Create
ParcelPLOT_IDGENERATE_IDCOUNTER_BTRUE
ParcelPLOT_IDGENERATE_IDCOUNTER_RTRUE
ParcelPLOT_IDEXPRESSIONIIf([TYPE]="Business","B" & [PLOT_ID],"")TRUE
ParcelPLOT_IDEXPRESSIONIIf([TYPE]="Residential","R" & [PLOT_ID],"")TRUE

 

I could not figure out how to trigger it. Any help would be appreciated.

Outcomes