Hi,
I have a Custom Widget on left, which has a clear button.
I have a query Widget on the right (red color), which shows some results.
Question:
How do I clear the results on the query widget by clicking the clear button. Also How do I clear the graphics from the map. this.map.graphics.clear only removes my buffer not the (voilet Symbols).
I tried the following code, but did not work.
Solved! Go to Solution.
Here is some code for that:
this.qWidget = WidgetManager.getInstance().getWidgetsByName("Query")[0];
this.qWidget._removeResultLayerInfos(this.qWidget._resultLayerInfos);
setTimeout(lang.hitch(this, function(){
this.qWidget._showTaskListPane();
}), 500);
Here is some code for that:
this.qWidget = WidgetManager.getInstance().getWidgetsByName("Query")[0];
this.qWidget._removeResultLayerInfos(this.qWidget._resultLayerInfos);
setTimeout(lang.hitch(this, function(){
this.qWidget._showTaskListPane();
}), 500);
Thank you.