Skip to Content
avatar image
Former Member

OData Enum Types

Hello Experts,

we have implemented in our Metadata an EnumType XXXX using OData.v4 When we are trying to apply the read operation using Fiori, we're getting no data belongs to the Enum Type viewed on the UI. Please find attached the code of the Metadata we are using and thanks in advance for your help.

Best regards,

Adham

edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="com.sap.icd.odata4.example">
<EnumType Name="XXXX" IsFlags="false" UnderlyingType="Edm.Int32">
<Member Name="WEEKLY" Value="0"/>
<Member Name="BIWEEKLY" Value="1"/>
<Member Name="SEMI_MONTHLY" Value="2"/>
<Member Name="MONTHLY" Value="3"/>
</EnumType>
<EntityType Name="Create">
<Key>
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.String"/>
<Property Name="Country" Type="Edm.String"/>
<Property Name="Town" Type="com.sap.icd.odata4.example.XXXX"/>
<Property Name="startDay" Type="Edm.String"/>
<Property Name="description" Type="Edm.String"/>
</EntityType>
<EntityType Name="Area">
<Key>
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int32"/>
<Property Name="uuid" Type="Edm.String"/>
<Property Name="ViewId" Type="Edm.String"/>
<Property Name="Country" Type="Edm.String"/>
<Property Name="Town" Type="com.sap.icd.odata4.example.XXXX"/>
<Property Name="startDa" Type="Edm.String"/>
<Property Name="description" Type="Edm.String"/>
</EntityType>
<EntityContainer Name="container">
<EntitySet Name="ViewSet" EntityType="com.sap.icd.odata4.example.View"/>
<EntitySet Name="EventSet" EntityType="com.sap.icd.odata4.example.AreaEvent"/>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers