jsos

Unexpected behavior after changing AttributeEditor example

Discussion created by jsos on Apr 9, 2014
Latest reply on Apr 19, 2014 by jsos
The app shows a datalayer with polygons and with table values that are editable. The layer is added twice for visualization purposes.

After testing the original code and changing the data layers my app only shows polygon objects after I changed the table values.

Original part:

dmsl = new ArcGISDynamicMapServiceLayer("http://sampleserver .arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer");
mapView.addLayer(dmsl);

featureLayer = new ArcGISFeatureLayer
("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/FeatureServer/0",
MODE.SELECTION);

This works as expected. I modified it to:

dmsl = new ArcGISDynamicMapServiceLayer("http://services1.arcgis.com/......./ArcGIS/rest/services/......./FeatureServer/2");
mapView.addLayer(dmsl);

featureLayer = new ArcGISFeatureLayer("http://services1.arcgis.com/..../ArcGIS/rest/services/......./FeatureServer/2", MODE.SELECTION);

mapView.addLayer(featureLayer);

While I don't have an (ArcGIS Server) Mapserver version of the data layer I add it twice from ArcGIS Online. It is a data layer with public rights. What would be the correct solution ?

Outcomes