Skip to Content

Can Overview Page (OVP) Linklist card use data from oData?

Jun 20, 2017 at 08:38 AM


avatar image


I'm researching on OVP Linklist card, I want to make two kinds of cards:

1. card with hardcoded titles/SemanticObjects/Actions:

I know I can hardcode those information in manifest.json.

2. card with dynamic titles/SemanticObjects/Actions:

I want to load those information from oData service, but as I searched UI5 toolkit, I didn't find any clue how to make this.

I'm new to Fiori/UI5 development so I think I may missed something.

Any suggestion?

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

1 Answer

Prasita Prabhakaran
Jul 21, 2017 at 07:53 AM

Hello Wang, is the link to documentation

Yes you can use oData service, just as you would do for other overview page card, below are the details to be referred to for configuring a link list card using annotations.

Element Source/Annotations

List Item Title

Is taken from the “Title” property of the UI.HeaderInfo annotation.
The reaction on a click event on the list item title is defined by the available annotations. The first annotation of the below list that is found defines the reaction to a click:

  • UI.Identification of type UI.DataFieldForIntentBasedNavigation -> An intent based navigation is initiated. The target of the navigation is defined by the content of the annotations “SemanticObject” and “Action” properties.
    Limitation: Please note that it is currently not possible to navigate to different targets from one list since the “Action” property is currently a literal and therefore contains the same value for all List items.
  • UI.LineItem of type “DataFieldWithAction” -> triggers one of the service’s function imports. Currently it is not possible to assign a different function import for each line item if the oData annotation is generated from a CDS annotation. But the needed oData annotation can be generated programmatically into the services metadata file. The necessary code has to be implemented in the “define” method of the service’s mpc_ext class. The resulting lines in the metadata.xml should look like this:<Annotations xmlns=""Target="<Service>.<EntityTpe>"> <AnnotationTerm=""> <Collection> <RecordType=""> <PropertyValueProperty="Action" Path="<Field with the action name>"/> <PropertyValueProperty="Value" Path="<Field with the action label>"/> </Record></Collection> </Annotation> </Annotations>
  • UI.LineItem of type “WITH_URL”: A url navigation is triggered. The URL for this navigation is taken from the entity type field that is named in the lineItem's “url” property.
  • Communication.Contact: A Contact card is displayed as a popover. The data shown on the contact card are taken from the Communication contact annotation of the card. Currently the following elements of the contact annotation are evaluated:
    • “fn” (Full name - used as headline of the contact card header)
    • “photo” (URL for a picture – used in the contact card header)
    • “role” (used as the description text in the contact card header)
    • “tel” (with property type “work” and “pref” the contact card shows it as “Phone”, with property type “cell” and “work” it is shown as “Mobile”
    • “email” (with property type “work” and “pref” the contact card shows it as “E-Mail”)

List Item Subtitle

Is taken from the “Description” property of the UI.HeaderInfo annotation.

List Item Picture

Here an image or an icon can be shown. The Url for an image has to be defined using the “ImageUrl” property of the UI.HeaderInfo annotation. The Url for an icon has to be defined using the “typeImageUrl” property of the UI.HeaderInfo.

If both are defined then the Images are shown.

Carousel Picture

For the carousel picture the same rules apply as for the list item picture. Additionally the carousel picture reacts to a click event as the list item title would

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Parsita,

Thanks for your response.

I am trying to implement a navigation to an external URL from link list card item.

In my OData entity I have a field called 'URL' containing the URL for navigation from that particular record.

Request you to review the following questions and share your thoughts -

1. Following are the CDS view annotations. The navigation is not working (same works for List cards). Can you please take a look and comment.

2. Also for the image / icon can you please confirm if I have configured the "UI.headerInfo" correctly and if yes, what are the values expected (lets say if i want to display an icon from SAP Icon Explorer) in ImageUrl and IconUrl fields.


// Link List Card Item Title


// Link List Card Item Description


// Image URL


// Icon URL



define view YDD_CO_CARR_LINKLIST as select from YDD_BO_OVP_SCARR as Airline {

@UI: {




key Airline.carrid as AirlinesId,






// For Navigation - Begin of Code


position: 20,


//This is for navigation


url: 'URL'


Airline.carrname as AirlinesName,

@UI: {




Airline.currcode as CurrencyCode,

@UI: {




Airline.url as URL,

Airline.ImageUrl as ImageUrl,

Airline.IconUrl as IconUrl