Hi Mike,
Thanks for the answer, dynamic assignment will work perfectly! One question more, the next step was to filter on 2 specific values in the datasource, but this will not work.
Now I've the following code in my OnClick event:
// Set the same datasource in the navigationpanel and crosstab as used in the chart
g_datasource_detail = COMPONENTMANAGER_1.getDataSourceByName(CHART_5.getDataSource().getInfo().dataSourceName+"_DETAIL");
g_datasource_detail.loadDataSource();
NAVIGATIONPANEL_1.setDataSource(g_datasource_detail);
CROSSTAB_1.setDataSource(g_datasource_detail);
g_datasource_detail.setFilter("0FISCPER", CHART_5.getSelectedMembers("0FISCPER"));
g_datasource_detail.setFilter("0COMP_CODE__ZX_REGION", CHART_5.getSelectedMembers("0COMP_CODE__ZX_REGION"));
// Go to the next pagebook page and enable the back button
PAGEBOOK.setSelectedPageIndex(2);
TEXT_5.setText("Page: "+PAGEBOOK.getSelectedPageIndex());
Regards,
Pieter