life Esri, You need to use import mx.utils.ObjectUtil; Alert.show(ObjectUtil.toString(fldArr));
import mx.utils.ObjectUtil; Alert.show(ObjectUtil.toString(fldArr));
That did it... thanks!!
You need to wait for the feature layer to load before you can access the fields. So you need to add a LayerEvent.LOAD listener to fLayer.
It looks like you are trying to get the fields from a table, not a feature layer. The layer with an index of 1 is a table, try using the layer with an index of 0 instead.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.