on 02-10-2017 5:00 PM
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
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
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you find resolution for these issues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.