AnsweredAssumed Answered

Hi, I am working on a feature layer that have setDefinitionExpression i.e filters data shown based on ID. Now i want to pre-populate attribute ID=xxx when a new object point is added. How do i do that

Question asked by satbirbaidwan on Nov 25, 2016
Latest reply on Nov 25, 2016 by satbirbaidwan

var responsePoints = new FeatureLayer("http://myorgxxx/arcgis/rest/services/Secure/FeatureLayerName/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ['*']
});

 

 

//apply sql filter
var id= <%=GetID()%>;  //this comes from Asp.net server side
responsePoints.setDefinitionExpression("ID="+id);
map.addLayers([responsePoints]);

Outcomes