Skip to Content
0

Smart Chart not working

May 12, 2017 at 01:44 PM

127

avatar image

Hi Experts,

I am using SAPUI5 Smart Chart control and I have some issues with the annotations generated by Gateway Builder. I added all necessary annotations mentioned in the Smart Chart documentation and it looks like this (vocabulary based odata project):

As you can see the property "ChartType" was generated as "Column". I have chosen that value in the corresponding DDLB in SEGW. Nevertheless, the chart is not working because it expects "com.sap.vocabularies.UI.v1.ChartType/Column" instead of just "Column". When I add this term using code in the MPC_EXT class using "com.sap.vocabularies.UI.v1.ChartType/Column" the Smart Chart works fine. Does anybody know why it doesn't work with Standard code?

Regards

Tobias

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ilja Mihailovs Jan 19 at 11:32 PM
0

Hey Tobias,

I am sorry to resurrect the last year's tread, but there is really not too many resources that speak about SmartChart control.

I am using SEGW created OData endpoint to fetch the collection records. To use the charting functionality I have changed metadata in WebIDE by adding dimensions/measures to the necessary attributes and added an annotation. Now when I display the view with the chart, I see that GET_ENTITYSET gets executed but the view stays empty.

I assumed that the problem is with my "Target" property and tried various combinations: Namespace.EntityContainerName.EntityName, Namespace.EntityName, etc. - but with not avail.

Can you share your steps on how you made it work? And also, would you mind sharing view/controller files here?

And a final one - do you think metadata modification directly in IDE is permitted for the Chart to work?

Appreciate your help,

Ilja.

Share
10 |10000 characters needed characters left characters exceeded