on 06-04-2019 1:27 PM
I am trying to create a OVP application containing Purchase order data. Now I wanted to add a analytical column chart type Card to it containing number of POs per vendor( showing top 5 )
I created following consumption view.
But When I go on to add a card in my OVP application selecting Analytical card, nothing is coming in KPI annotation field. which is one of the mandatory field. Am I missing any annotation.
Hello Abhishek,
This Web-IDE OVP plugin only detect "UI.KPI" annotation and do not detect other analytical card annotation like "chartAnnotationPath" and "selectionPresentationAnnotationPath". Below is an example how you can define UI.KPI annotation:
<AnnotationTerm="UI.KPI"Qualifier="AllActualCosts"><Record Type="UI.KPIType"><PropertyValue Property="Detail"><Record Type="UI.KPIDetailType"><PropertyValueProperty="DefaultPresentationVariant"Path="@UI.PresentationVariant#Eval_by_Currency1"/><PropertyValue Property="AlternativePresentationVariants"><Collection><Path>@UI.PresentationVariant#Eval_by_Currency_Column</Path></Collection></PropertyValue><PropertyValue Property="SemanticObject" String="Action" /><PropertyValue Property="Action" String="toappnavsample" /></Record></PropertyValue><PropertyValueProperty="SelectionVariant"Path="@UI.SelectionVariant#Eval_by_Currency_1"/><PropertyValueProperty="DataPoint"Path="@UI.DataPoint#Eval_by_Country-Generic"/><PropertyValueProperty="ID"String="String for KPI Annotation"/></Record></Annotation>
Card manifest setting using above annotation:
"card004": {"model": "salesShare","template": "sap.ovp.cards.charts.analytical","settings": {"title": "Total Purchase Order Value","subTitle": "Year-to-date","entitySet": "SalesShareDonut","valueSelectionInfo": "Categorized by products","customParams": "getParameters","kpiAnnotationPath":"com.sap.vocabularies.UI.v1.KPI#AllActualCosts","navigation": "noHeaderNav"}}
Alternatively you can skip the web IDE plugin and add card manually using chart annotation:
"card006": {"model": "salesShare","template": "sap.ovp.cards.charts.analytical","settings": {"title": "Most Popular Products","subTitle": "In the last six months","entitySet": "SalesShareDonut","selectionAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionVariant#Eval_by_Currency","chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#Eval_by_Currency_Column","presentationAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant#Eval_by_Currency_Column","identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#Eval_by_Currency"}},
Hope it helps 🙂
Thanks and Regards
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.