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");

featureLayer = new ArcGISFeatureLayer

This works as expected. I modified it to:

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

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


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 ?