cancel
Showing results for 
Search instead for 
Did you mean: 

SAP OVP Analytical Cards Mouse Hover Action and Filtering

srinivas_sistu
Active Contributor

Hi All,

I am trying to build an OVP having multiple cards. I was able to create various types of cards, like list, line, column etc.

However, I am struggling with two things.

1. If we consider a UI5 VIZ Chart, for example, column chart, when we mouse hover / Click on a particular column, it shows me some pop-over information (selected dimension and measure). How can I achieve the same using OVP Column chart?

2. One thing that has been killing me, is the filtering. I am neither able to get the global filtering working nor a card specific filter.

Could some one please help me in getting a card specific filter ( with a drill down, say Region drilldown) working.

your help is highly appreciated.

PS : For all the cards in the OVP, I am using my own OData service deployed on our PO Server.

Regards,

Srinivas Sistu

0 Kudos

Have got an solution for this pls let us know i am also facing same issue

Accepted Solutions (0)

Answers (2)

Answers (2)

tridwip
Participant

Hi,

For global filter we need to apply selection fields in annotation:

<Annotations Target="NorthwindModel.Invoice">
<Annotation Term="UI.SelectionFields" Qualifier="invoice_sel">
<Collection>
<PropertyPath>CustomerID</PropertyPath>
<PropertyPath>CustomerName</PropertyPath>
</Collection>
</Annotation>
<Annotation Term="UI.LineItem" Qualifier="invoice_list">
<Collection>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="CustomerID"/>
<PropertyValue Property="Label" Path="CustomerID"/>
</Record>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="RequiredDate"/>
<PropertyValue Property="Label" Path="RequiredDate"/>
</Record>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="ShippedDate"/>
<PropertyValue Property="Label" Path="ShippedDate"/>
</Record>
</Collection>
</Annotation>
</Annotations>

"Label"s are not applied for list cards hence not mandatory. The qualifier is important as we will mention that in the "annotationPath" for selection fields in our "manifest.json" file. Now after we have the annotation, we need to maintain the manifest.json file like this(Please maintain the difference between "globalFilterEntityType" and "globalFilterEntitySet" if we need to maintain it manually):

"sap.ovp": {
"globalFilterModel": "Northwind",
"globalFilterEntityType": "Invoice",
"globalFilterEntitySet": "Invoices",
"enableBasicSearch": true,
"containerLayout": "resizable",
"enableLiveFilter": true,
"considerAnalyticalParameters": true,"cards": { "card04": {
"model": "Northwind",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{card04_title}}",
"entitySet": "Invoices",
"selectionAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionField#invoice_sel",
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem#invoice_list",
"addODataSelect": false
}
}
}
0 Kudos

Did you find resolution for these issues?