Hello,
I am trying to generate Facility IDs for my Water Meter feature class in ArcGIS Pro using Attribute Rules. This is the code I have so far, but I need to figure out how to add leading zeros, or decimal places to the ID. What I come up with is "wMET3" and I would like "wMET003". Any insight would be greatly appreciated.
if(isempty($feature.FACILITYID)) return concatenate("wMET" + nextsequencevalue("wMeterSeq"));
Solved! Go to Solution.
I have not worked with this in Pro Attribute Rules but the Concatenate function in Arcade is Concatenate( values, separator?, format? ). Try using the following in your return:
Concatenate(['wMET', nextsequencevalue("wMeterSeq")], '', '000')
I have not worked with this in Pro Attribute Rules but the Concatenate function in Arcade is Concatenate( values, separator?, format? ). Try using the following in your return:
Concatenate(['wMET', nextsequencevalue("wMeterSeq")], '', '000')
I'm so used to concatenating w/ a "+" I completely forgot about that. Nice!
Both of these processes worked. Thanks so much!