I’m currently using the CustomColumnFetch event to display some numerical data on a map. I’d like to be able to refresh that as new data becomes available. The event fires as expected when I create the layers and the initial data is displayed correctly, but I’m not sure how to force a refresh / recall of the event handler when I refresh the data. I found this thread which I tried (it’s in the Desktop forum) but didn’t have any luck:
CustomColumnFetch event
Thanks,
Neil
CustomColumnFetch event
Hi Neil,
The CustomColumnFetch only be fired once when your code use a new column which don’t contained by the feature layer.
I am sorry I don’t know what’s the scenario you want to refresh the data, because if you modify the data, the render code won’t run again. So I think in this scenario, you should want to create a new FeatureLayer for your refresh data then replace original FeatureLayer.
If I misunderstand anything please let me know.
Regards,
Don
That makes sense. Basically what we’re doing is displaying some analysis results on the map. We’re bringing the results in from an external data source, so if they change we only need to update the numbers. I’ll take a look at recreating the layer with the new results.
Thanks for your help,
Neil
Hi Neil,
I am glad to hear that’s helpful for you, any question please let us know.
Regards,
Don