Hello ArcGIS Community!
I am new to ArcGIS API for javascript. I need to run a loop over each feature of this layer to calculate the sum of attribute "Length_Cal" and display features until the sum is less than 100. All remaining features should be hidden. The loop should run based on the attribute "PCR_NBR" in ascending order. Here is my layer:
var pavement = new FeatureLayer({
url:
});
Apologies in advance if I am asking/don't know a simple thing.
Thanks!