Select to view content in your preferred language

Regarding a layer or map refresh

763
3
10-23-2024 12:32 AM
HariomPandya
Occasional Contributor

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 . 

0 Kudos
3 Replies
Allen_Zhang
Frequent Contributor
0 Kudos
HariomPandya
Occasional Contributor

Hi Allen , I tried this but doesnt work for widget source refresh .

0 Kudos
Allen_Zhang
Frequent Contributor

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.

0 Kudos