Hi All , I have a custom widget where i am uploading a excel file and that excel file will dump my data in the layers .
Now i have a filter widget where i have configured that layers ,when i am looking for the uploaded data in widget it is not reflecting in widget , i need to refresh my whole application session to view the data in widget However the data is coming if i on the layer or view it in attribute table .
Can anyone suggest me how can i refresh the map or layer source of widget without refreshing the whole session .
Have you tried the Layer's refresh method?
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refresh
Hi Allen , I tried this but doesnt work for widget source refresh .
The Layer's refresh methos only work for the layer instance in the map.
For widget data source, I'll get the widget's data source instance and try ds.load(queryParams, { widgetId, refresh: true}).
I'm not quite sure if this is your condition.