Select to view content in your preferred language

query on FeatureLayer  and flex caching ?

555
1
03-07-2011 07:03 AM
SylvainKerdreux
Emerging Contributor
Hello,

I did an update operation on a featureLayer but when I tried a query operation on this feature layer I did not see any of my modifications.
However using REST API and a query operation on the feature layer (for example : http://myComputer/arcgis/rest/service/MyFeatureLayer/FeatureServer/1/query) I can see all my modifications.

I need to reload the flexviewer  to see my modifications.
I tried to refresh featureLayer using refresh method. I disabled flex caching on my featureLayer(disableClientCaching = true). I even remove and re-add featureLayer on the map.
I used all different mode (FeatureLayer.MODE_ON_DEMAND, snapshots, onSelection).

What have I to do to see my modifications on my featureLayer without reloading the flexviewer ?
Tags (2)
0 Kudos
1 Reply
RavinHasseea
Emerging Contributor
Hi, I am experiencing the same issue described below. After applying a definitionExpression to a feature layer, I am unable to refresh it.

var CoverageLayer::FeatureLayer = new FeatureLayer("http://servername/arcgis/rest/coverage/mapserver/1");

var queryExpression:String = "ID like '%BT%'";

CoverageLayer.definitionExpression = queryExpression;
  
CoverageLayer.disableClientCaching = true;
   
CoverageLayer.refresh();


Any ideas anyone???



Hello,

I did an update operation on a featureLayer but when I tried a query operation on this feature layer I did not see any of my modifications.
However using REST API and a query operation on the feature layer (for example : http://myComputer/arcgis/rest/service/MyFeatureLayer/FeatureServer/1/query) I can see all my modifications.

I need to reload the flexviewer  to see my modifications.
I tried to refresh featureLayer using refresh method. I disabled flex caching on my featureLayer(disableClientCaching = true). I even remove and re-add featureLayer on the map.
I used all different mode (FeatureLayer.MODE_ON_DEMAND, snapshots, onSelection).

What have I to do to see my modifications on my featureLayer without reloading the flexviewer ?
0 Kudos