Attempting to create sequential IDs for managing above ground assets.
I successfully create the database sequence and have been working with two scripts.
1.) Returns zeros in the FID field
--------------------------------------------------------------------------------------
var FID = $feature.FID;
($feature.FID == 1)
return "SP-" + NextSequenceValue("Traffic_SignalPole_ID")
--------------------------------------------------------------------------------------
2.) The FID values remain Null
----------------------------------------------------------------------------------------
var FID = $feature.FID;
(FID == 1)
return "SP-" + NextSequenceValue("Traffic_SignalPole_ID")
----------------------------------------------------------------------------------------
If is put an "if" before the second line regardless, the field value will be null.
Also when I check the table in arc catalog is shows that the sequence is adding to the database table, but is still not being appended to the feature its self.
