akpaga

feature layer:selection mode and  snapshot mode difference?

Discussion created by akpaga on Jun 5, 2012
Latest reply on Jun 6, 2012 by akpaga
Hi friends

I am trying use the following samplehttp:
//help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_attribute_inspector.html

The problem..is that

when i change the feature layer  to my url like this, the feature points do not show on the base map.


        var petroFieldsFL = new esri.layers.FeatureLayer("http://test.com/ArcGIS/rest/services/Houston/Test/FeatureServer/0", {
          mode: esri.layers.FeatureLayer.MODE_SELECTION,
          outFields: ["test1","objectid","Vacant"]
        });


But  when i change the mode:esri.layers.FeatureLayer.MODE_SNAPSHOT  , they show up.....what is the difference between the sample feature service and mine...
how can i get it work in selection mode


Thank  you in advance

Outcomes