var featureLayer = new esri.layers.FeatureLayer("http://<my server> :6080/arcgis/rest/services/type/MapServer/1", { // mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate:popupTemplate, outFields: ['info' , 'attr_name']
I faced same situation when i used relational table and joined to my feature class. Each attribute the qualifier name consisting of <Database Name>.<Schema>.<Table Name>.<Attribute> example "EngESRI.DBO.tbdata.DataID" . In this case we should use entire name in the outfield list and pass same name to the infobox that we have used in outfield outfield.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.