Select to view content in your preferred language

Update FeatureLayer after update FeatureTable

587
2
12-28-2017 05:16 AM
MarcWouters
Emerging Contributor

Hi,

When I update a FeatureTable (using updateFeature(Feature*) ), I was kinda hoping that the FeatureLayer which is used to render the data would automatically refresh, and show the new situation. Which doesn't happen.

How can I keep the View (=layer) in sync with the Data (=table) ?

Thanks for any suggestions.

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

The layer should update automatically as you expected that it would. Our "Update attributes (feature service)" sample demonstrates this. What are the details of the scenario you are running into? Have you made sure that your edit to the table has been successful?

0 Kudos
MarcWouters
Emerging Contributor

I have looked at the sample code, but there is one (probably important) difference :

instead of a ServiceFeatureTable, we are using a GeodatabaseFeatureTable - all operations are done off-line.

This also means that there is no applyEdits() method to invoke. 

Updating attributes works fine, by the way, but updating geometry is causing me headaches....

0 Kudos