Skip to Content
0
Dec 07, 2015 at 11:50 AM

OVP does not display data

682 Views

HI,

I just played a bit with the new OVP in HCP. I could create an OVP project with the OVP plugin of SAP WebIDE and I was also able to create two cards (table card and list card). When I run the application the cards are created and in the footer they tell me that 5 of 100 records are displayed. But in the list / table control no data is shown. I've also debugged and can see that the OData service delivers the data correctly. Binding of the controls also looks correct (see Screenshots below).

I think that my annotation file is not correct but I merely copied the example from the SAPUI5 documentation page and adjusted it to the field names of my OData service which is https://sapes1.sapdevcenter.com/sap/opu/odata/sap/SALESORDERXX. I use the

SOHeaders

collection of this service.

Here is the content of my annotation file:

<Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
    <Collection>
        <Record Type="com.sap.vocabularies.UI.v1.DataField">
            <Annotation EnumMember="com.sap.vocabularies.UI.v1.ImportanceType/High" Term="com.sap.vocabularies.UI.v1.Importance"/>
            <PropertyValue Property="Label" String="Doctype"/>
            <PropertyValue Property="value" Path="DocumentType"/>
        </Record>
        <Record Type="com.sap.vocabularies.UI.v1.DataField">
            <Annotation EnumMember="com.sap.vocabularies.UI.v1.ImportanceType/High" Term="com.sap.vocabularies.UI.v1.Importance"/>
            <PropertyValue Path="DocumentDate" Property="value"/>
        </Record>
        <Record Type="com.sap.vocabularies.UI.v1.DataField">
            <Annotation EnumMember="com.sap.vocabularies.UI.v1.ImportanceType/High" Term="com.sap.vocabularies.UI.v1.Importance"/>
            <PropertyValue Path="CustomerId" Property="value"/>
        </Record>
        <Record Type="com.sap.vocabularies.UI.v1.DataField">
            <Annotation EnumMember="com.sap.vocabularies.UI.v1.ImportanceType/High" Term="com.sap.vocabularies.UI.v1.Importance"/>
            <PropertyValue Path="SalesOrg" Property="value"/>
        </Record>
    </Collection>
</Annotation>

And here is the output

Control binding:

Does anyone have an idea what to do?

Best regards

Helmut