Dear All
I am approaching the end of the development cycle for a crm type application and have a problem I cannot seem to get round and hope somebody can help or just point out that I'm doing something stupid!
In its simplest form we have 2 crosstabs - the first is populated with all backorders for a selected customer, the 2nd is a further analysis of each line which is populated by the onSelect method of the first crosstab. It looks something like below (there are a couple more dimensions not shown below on crosstab1):-
The data comes from 2 datasources which both use the same variable names and are populated as follows:-
DS_1.loadDataSource();
DS_2.loadDataSource();
APPLICATION.setVariableValueExt("psCUST", XCust);
The problem is that the end user can change the customer and reload the data sources. On the first pass everything works fine and all lines are selectable and correctly analyse the data in the 2nd crosstab (on Select - DS2_setFilterValueExt("DocNo", CROSSTAB_1.getSelectedMember("DocNo"));.
However, if the loadDataSource is invoked again with a different customer, crosstab 1 is populated correctly but the on select method becomes erratic, some lines analyse correctly in the 2nd crosstab - others try to display all the data in of the 2nd datasource. Upon further investigation the member .internalkey value of the incorrect lines is "[ALL MEMBERS]" even though a single line is selected.
Also we used to get a vague error message in the Design Studio development environment about an "ArrayIndexOutOfBounds" error that no longer appears (we have just updated our BOE servers to SP5). It's almost as if the reloading of the data sources has screwed the internal index of the data source.
Has anybody else experienced this or am I doing something stupid (wouldn't be the first time!!). Should I be reporting this to SAP as a customer message?
Regards,
Barry