featureLayer.refresh() not updating symbology after attribute edit

3460
3
08-27-2014 07:43 AM
TylerWaring
Occasional Contributor II

Greetings,

     I have a flex application that updates the attributes of a feature layer. I am able to update the attributes just fine at run time. However, when I run myFeatureLayer.refresh() in my editsComplete event handler, the symbology of my layer does not update. It is not until I reload the application that my edits are reflected in the symbology. Am I missing soimething?

Thanks, Tyler

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Tyler,

   Have you set disableClientCaching on the FeatureLayer?

0 Kudos
TylerWaring
Occasional Contributor II

Thanks for getting back with me so soon. In my code I just tried setting the featurelayer's disableClientCaching property to true and it does not work.

I am however, able to remove my feature layer from my map and then add it back in to force the symbology update. It's too choppy a ride for production use though.

Thanks, Tyler

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Tyler,

   Strange... Normally setting the disableClientCaching to true and calling refresh is all that is needed.

0 Kudos