Hi all,
I'm just starting with SAPUI5m in Design Studio Client and I've stumbled upon simple problem - I want to change Info Chart Type on a button, from column to stacked on a BUTTON_5:
if(T1_CHRT_MAIN.getChartType() == InfoChartType.INFO_STACKED_COLUMN){
T1_CHRT_MAIN.setChartType(ChartType.VERTICAL_BAR);
BUTTON_5.setText("Stacked Chart");
}
else{
T1_CHRT_MAIN.setChartType(ChartType.VERTICAL_STACKED_BAR);
BUTTON_5.setText("Column Chart");
}
Clicking on that button throws this error:
"The passed value is not valid for enumeration "InfoChartType". Examples of valid values: "InfoChartType.INFO_BAR" or ""INFO_BAR"""
When I try to put like:
T1_CHRT_MAIN.setChartType(InfoChartType.INFO_COLUMN), it reports:
The passed value is not valid for enumeration "ChartType"
Unfortunately I don't have access to SDK, only Client to play with...
EDIT I forgot to mention that I used "Migrate to UI5m mode" option - I suppose chart elements weren't migrated fully? just a thought I'm trying to investigate.
Any help would be very much appreciated!
Thank you!
Message was edited by: Goran Belovari