org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

Cannot obtain selection from Info Chart based on BYOD data-source #157

Open ephraimrosenfeld opened 7 years ago

ephraimrosenfeld commented 7 years ago

The Info Chart component allows the user to capture the selected bar/series using the following function: INFOCHART.getSelectedMember(DATA_SOURCE.getDimensions()[0]);

However, for an Info Chart based upon a "Bring Your Own Data" - Datasource, this operation fails with the following error: Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (getDimensions#10) See the InfoChartBasedOnBYOD_SelectionStackTrace.txt for the full stack-trace.

Attached is an exported sample Analysis Application: Test_BYOD_w_InfoChart-20170306150937.zip, in which the issue can be reproduced.

The 'UI5 Table 2.0' SDK component seems to work well with the BYOD - Datasource but I have yet to find a chart/graph component that does the same.

Any guidance, instruction, or tips would be greatly appreciated.

Thank you in advance.