NeoJigglypuff

dynamically segemented featurelayer returns only one record

Discussion created by NeoJigglypuff on Jun 27, 2012
Latest reply on Jun 28, 2012 by NeoJigglypuff
I have a layer that is dynamically segmented with data through an OLEDB connection. As a base layer, the contents load fine and complete. But when I use it as a FeatureLayer, always only one record is returned. Why is this so and how can I completely load the dynamically segmented layer's content?

This is the how I use the FeatureLayer:
function showFeatureRender() {

 var infoTemplate = new esri.InfoTemplate("${NAME}", "${*}");
 featuremap = new esri.layers.FeatureLayer("http://co-gis-01/ArcGIS/rest/services/dev_RTIA/rtia/MapServer/2", {
  mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
  outFields: ["*"],
  infoTemplate: infoTemplate
 });

 map.addLayer(featuremap);
 
 dojo.connect(featuremap, "onError", function(error) {
 
  alert("message: " + error.message);
 });

dojo.connect(featuremap, 'onLoad', featureLoaded);
}


The onError event does not fire, but onLoad does. I tested loading a layer that is equivalent to the dynamically segmented one (I exported and imported the layer) and it is able to load the non-dynamically segmented one fine. Are there other settings needed to be configured to deal with dynamically segmented layers in map services?

Outcomes