on 02-16-2017 9:15 AM
Hi experts,
I´m trying to create a pretty simple OVP list card but it shows no data. It recognizes the amount of entries but the entries in the list are blank. I`m working on a local WebIDE so I deployed the OVP to the system to check if it is an WebIDE issues but same result on the systems Launchpad. We are on SAP UI version 1.38.16. Components:
Not sure if this is enough for OVPs.
Annnotation file: (webapp/annotations/annotation1.xml)
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs02/vocabularies/Org.OData.Aggregation.V1.xml">
<edmx:Include Alias="Aggregation" Namespace="Org.OData.Aggregation.V1"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/vocabularies/Org.OData.Capabilities.V1.xml">
<edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470974/Common.xml?api=v2">
<edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470971/Communication.xml?api=v2">
<edmx:Include Alias="vCard" Namespace="com.sap.vocabularies.Communication.v1"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/vocabularies/Org.OData.Measures.V1.xml">
<edmx:Include Alias="CQP" Namespace="Org.OData.Measures.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470968/UI.xml?api=v2">
<edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm">
<Annotations Target="SRM_SOCO.UOM">
<Annotation Term="UI.LineItem">
<Collection>
<Record Type="UI.DataField">
<PropertyValue Property="Label" String="{@i18n>@EINHEIT}"/>
<PropertyValue Property="Value" Path="UnitText"/>
</Record>
</Collection>
</Annotation>
</Annotations>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Manifest:
"dataSources": {
"SRM_SOCO": {
"uri": "/sap/opu/odata/sap/SRM_SOCO/",
"type": "OData",
"settings": {
"localUri": "localService/SRM_SOCO/metadata.xml",
"annotations": [
"annotationList"
]
}
},
"annotationList": {
"uri": "annotations/annotationList.xml",
"type": "ODataAnnotation",
"settings": {
"localUri": "annotations/annotationList.xml"
}
}
},
.....
"sap.ovp": {
"globalFilterModel": "SRM_SOCO",
"globalFilterEntityType": "",
"cards": {
"Audi_Test2_card00": {
"model": "SRM_SOCO",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{Audi_Test2_card00_title}}",
"subTitle": "{{Audi_Test2_card00_subTitle}}",
"entitySet": "UOMCollection",
"listType": "condensed",
"listFlavor": "standard",
"sortBy": "UnitText",
"sortOrder": "ascending",
"addODataSelect": "false",
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem"
}
}
}
}
Any help is appreciated.
Thanks and regards,
Oezlem
Hi Ozlem ,
What is your entityset name?.If it is 'UOMCollection' In your annotations target change from
<Annotations Target="SRM_SOCO.UOM">
to
<Annotations Target="SRM_SOCO.UOMCollection">
Check what is in your Entity type in metadata.xml If its is not SRM_SOCO.UOMCollection change it accordingly.
for sample using northwind visit my blog techippoOverviewApplication sample
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.