cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Chart not working

former_member204167
Participant

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member593475
Discoverer
0 Kudos

I am having the same problem.

when generating with segw annotations , it doesn't work.

but if I write it manually with MPC_EXT it works fine..

imihailovs
Explorer
0 Kudos

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.

0 Kudos

Hi Ilja,

I have exactly the same problem. Did you manage to get it work? Would you mind sharing the solution?

Thanks in advance,

Noga