Hello SAP Community,
We are building a custom data source extension using the new Data Source SDK in Design Studio 1.4. We have the vast majority of things working well (with some help from SCN!)
However we are having an issue with getSelectedMember() and getSelectedMembers() on charts bound to our custom data source. An attempt to call these methods on the chart's On Select event causes an error with getSelectedMember(), and returns an empty array with getSelectedMembers().
The error we see with getSelectedMember() is 'org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException'.
This is how you can recreate this scenario:
var selectedItem = CHART_1.getSelectedMember("cols");You can alter the script in the On Select property of the chart to use getSelectedMembers(), and you will see that it returns a 0 length array.
var selectedItems = CHART_1.getSelectedMembers("cols");
APPLICATION.alert("Length " + selectedItems.length);
When you select a column in the chart, you will see that the length of the array is zero.
So my questions for discussion are:
Kind regards,
Mark Bain.