AnsweredAssumed Answered

How can I access to fields collection of some published layer?

Question asked by margaraiz on Aug 25, 2016
Latest reply on Aug 26, 2016 by rscheitlin

Hi everybody!


First of all, I'm a new WAB developer and I'm quite lost.. I'm trying to build a new custom widget and my first task is to load into a drop-down list the values of some specific field of the layer that is published in my webmap, but I am not sure how to access to fields collection, I have beed doing some research and I think that is throught "esri/layers/FeatureLayer" but I'm not sure. Can some one guide me a little bit please?


I have been able to acces to the layerinfo by "jimu/LayerInfos/LayerInfos" but I don't think that this library gives me access to fields collection of the layer.


Thanks you very much!