Select to view content in your preferred language

after edit the update doesn't work

1222
7
09-14-2010 08:52 AM
MannusEtten
Emerging Contributor
with the rest api we add new features to the map. after that we call refresh and update to all layers in the map. still no new feature in the map.

what should we have done to refresh the map in a proper way so we see the new feature?
our resolution is to zoom in with some factor of 0.0001...
0 Kudos
7 Replies
JenniferNery
Esri Regular Contributor
Do you mean, you see the features are on the server but your map does not show the new features? If yes, do you have the FeatureLayer's DisableClientCaching property set to true?
0 Kudos
MannusEtten
Emerging Contributor
Do you mean, you see the features are on the server but your map does not show the new features? If yes, do you have the FeatureLayer's DisableClientCaching property set to true?


I have to look if this is set, now we just move the map a bit and it is over...
0 Kudos
dotMorten_esri
Esri Notable Contributor
For layers whose data is changing, set the DisableClientCaching=true. If you have dynamic layers that contain data that gets edited through a featurelayer, make sure you call Refresh on that dynamic layer after the edit on the featurelayer completes.
0 Kudos
MannusEtten
Emerging Contributor
I have the disablecient=true on the featurelayers but I understand that it has to be on the dynamicmapservicelayer... okay I will try that too.

What is in essention the difference between refresh and update? I noticed today that with a refresh my selection disappeared and with update not...
0 Kudos
JenniferNery
Esri Regular Contributor
In a FeatureLayer Update() will re-query the data underlying your feature layer. If layer or table contents have changed on the server, you can call this method to see changes in the feature layer on the client. Note, you may need to disable client caching.  You are right, selections and unsaved edits will be lost on Update.

Refresh() on dynamic layer will re-draw the layer at the current view/extent.
0 Kudos
ChaimLevy
Emerging Contributor
Hi,

I'm also intrested in refreshing a client map display when there are updates done to the map on the server side (such as adding, removing features or updating symbols).
The layer is a feature layer in a map that is published as a REST service consumed by a WPF client connected to the Feature server of the map.
I would like to initiate a refresh from the server side to all connected clients.
Is there an API or such, on the server side, to force all connected clients to refreh/update there displayed map?

Thanks in advance,
Chaim
0 Kudos
JenniferNery
Esri Regular Contributor
0 Kudos