Skip to Content
0
Former Member
May 20, 2016 at 02:01 PM

InfoChart clearSelection

127 Views

Hey,

currently I try to create a "drill-down" function within a InfoChart. The whole result set I need are within the InitalView. In the OnStartup script I remove unnecessary dimensions (here the product dimension)

DS_1.removeDimension("0D_NW_PROD");

After that the InfoChart looks like this:

Within the OnSelect script of the InfoChart the product dimension will be added after selecting one or more product category:

DS_1.setFilter("0D_NW_PROD__0D_NW_PRDCT", INFOCHART_1.getSelectedMembers("0D_NW_PROD__0D_NW_PRDCT"));

DS_1.moveDimensionToRows("0D_NW_PROD");

BUTTON_1.setEnabled(true);

Now I want to use the "reset button" to go back to the inital view (remove the product dimension and delete the product category filter).

DS_1.setFilterExt("0D_NW_PROD__0D_NW_PRDCT", "");

DS_1.removeDimension("0D_NW_PROD");

INFOCHART_1.clearSelection();

After that the filter and dimension are removed but the InfoChart still keeps the selection. Is there a way to avoid this? Tried to make chart invisible/visible or reload the data source without success.

Kind regards

Andre

Attachments

InitialView.png (49.3 kB)
InitialChart.png (14.9 kB)