OData annotations

Fiori Overview Page (OVP) Application - Creating Stack Card with Quick view cards!

           In previous post we  created our first SAP Fiori Overview Page Application using northwind OData service and added a List card to our application. In this post we will see how to create a Stack card and configure it with few Quick view cards.
           Stack cards aggregate a set of cards of the same type which have a common topic or action.When clicked upto 20 stacked cards can be displayed in the object stream.We will use Employee entityset of Northwind OData service.


  1. Fiori Overview Application created already.I will be using the application created in 'How to Create your first SAP Fiori Overview Page Application ? - Example using List Card' for this tutorial.

  1. First step is adding a Stack card to the fiori overview application.For this Right click on application->new->Card.

  2. Select a card.Choose Stack card and press next button.
  3. In Card customisation section select the entityset we are going to use.I chose Employees.Give a title.title is mandatory this will be shown in the card.In the annotation Section keep the annotation Path field empty.We will add it later in manifest file.Press next and press finish.A new component called Stack card will be added to the application.
  4. Open manifest.json and edit the code inside cards section like below.

  5. Open our localAnnotations_1.xml file and paste below code inside annotations tag.We are using these annotations for configuring the Quick view cards. com.sap.vocabularies.UI.v1.HeaderInfo is used for quick view card header section and com.sap.vocabularies.UI.v1.Facets and FieldGroup for Quick view card details section.Add below the LineItem annotation. 

  6. Now our Fiori Overview Application looks pretty good.See the screenshots.
  7. When Stack card is clicked Quick view cards are shown.

  8. In my next tutorial I will be adding an Analytical card to the application
If you enjoyed this post, I’d be grateful if you’d help it spread by sharing.Thank you! See you soon


Post a Comment

Powered by Blogger.