Skip to Content

Using HANA xsodata in Fiori Overview Page - Getting Cannot Load Card?

Hi All,

I can create an Overview Page and associated cards using a Gateway service and manual annotation file in WebIDE, but when I try to do exactly the same thing for a HANA based XSOData service, I'm getting an issue and the card is returning Cannot Load Card.

The service is very basic and works as expected when called directly. It looks like this:

service
{
    "Demo.OVPDemo/DemoOVP.calculationview" as "Entities" key ("MY_KEY");
}

Any ideas?

Cheers,

Matt

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Oct 17, 2016 at 09:44 AM

    Found the reason why. When you use the New Card wizard, it incorrectly references the OData with .xsodata. e.g.

    It gets generated like this:

    		"cards": {
    			"Testg_card00": {
    				"model": "OVP.xsodata",
    

    When it should simply be:

    			"Testg_card00": {
    				"model": "OVP",
    
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2016 at 05:47 PM

    Hi, thanks for sharing the solution. Regards, Sascha

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2016 at 10:59 PM

    Hi Matt,

    For OVP Charts you also need to enable the annotations in your ODATA like:

    service
    {
      "Demo.OVPDemo/DemoOVP.calculationview" as "Entities" key ("MY_KEY");
    }
    annotations 
    {
      enable OData4SAP;
    }
     
    Add comment
    10|10000 characters needed characters exceeded

    • Hi Robert,

      Thanks for chiming in. Can you explain why I would need that for the Overview Page? I can understand the need for that for Smart Business Tiles, but why would it be required when you are creating your own annotations for Overview Page Cards in WebIDE? e.g. Except for my question posted here, the service as is works fine. (I did update it with the above, but the above WebIDE error still occurs, and my analytical tile still doesn't show me a donut)

      Cheers,

      Matt

  • Oct 21, 2016 at 07:57 AM

    Hi Matt,

    OVP Charts will react on the analytic annotations in the attributes of an entity type. You can find these, eg Measurements, Aggregations, Dimension and Total in the Metadata of the ODATA. By adding this line of code, these behaviours will be inherit from the Calculation View.

    These analytic annotations then can be used in the configuration of the charts.

    Cheers,

    Robert

    Add comment
    10|10000 characters needed characters exceeded

    • Guess I'm missing the point - Can't you just do this yourself in the annotations you create in WebIDE? e.g. I have 1 service that provides 2 measures that I want 2 graphs for; and local annotations mean I can do this with 2 qualifiers. Works fine for standard, non-annotated at the source Gateway services. Let's talk in BCN :-)