Hello,
I work with DS1.3 SP01, and I have a problem with putting initial state on chart after RESET action from a button.
Initially I was inspired with Zahid’s post http://scn.sap.com/thread/3566300, but it’s seems to be other scenario and needs.
I this case, I have a tabstrip with 5 pages, where each presents pie charts. Once we click on one of the chart, a crosstab is displayed for each of them. When I click on button RESET, whatever a page is currently displayed I want to clear all filters for all my charts. During a RESET I hide all cross tabs – so I don’t have to liberate datasources linked to crosstabs.
My code for RESET button seems to work quite ok, cause it gives me a chart with initial state, ready for next selections…. in condition that I do not click on RESET just after 1st click on pie chart.
For example :
- on page 1 : click on pie chart 1, then I go to the page 2/ click on chart 2 - come back to page 1 => click reset (chart 1 - initial state, chart 2-selection is highlighted)
or
- on page 1 : click on pie chart, then I add additional filter from panel_filter for all charts => click reset, works fine for all charts.
If I try to click on RESET just after an action of click on the pie chart, I would say it stays locked, and my RESET do not put him in initial state. But If I click again, it works ! I would like to understand what is happening just after click on pie chart, why the state of chart seems to be "locked" ?
My code:
DS_1.clearAllFilters();
CHART_1.getSelectedMember("XEMPLOYEE").internalKey;
DS_2.clearAllFilters();
CHART_2.getSelectedMember("XCOUNTRY").internalKey;
// put invisible all cross tab from different pages
CROSSTAB_1.setVisible(false);
Thank you
Beata