Feature Service - autorefresh not working

602
4
10-06-2013 10:53 PM
WillHughes1
Occasional Contributor II
10.1 feature access (service)
3.4 flex viewer

The service is not refreshing for some reason.

<layer label="land" type="feature" visible="true" autorefresh="10"
              url="http://myserver/arcgis/rest/services/land/2"/>

What am I missing?

Thanks.

Will
Tags (2)
0 Kudos
4 Replies
AnthonyGiles
Frequent Contributor
Will,

Maybe you need to stop the client from caching the data try using disableclientcaching="true" and/or mode="onDemand"

Regards

Anthony
0 Kudos
AaronNash1
Occasional Contributor II
sure the URL to your map service is correct?

http://[server name]/arcgis/rest/services/[service name]/MapServer/[feature class]
0 Kudos
WillHughes1
Occasional Contributor II
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you try using version 3.5? The FeatureLayer was updated in 3.5 to add a _ts timestamp URL parameter to prevent client caching when calling refresh().
0 Kudos