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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.