Skip to Content
avatar image
Former Member

Smart Chart not working

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 19 at 11:32 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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