Skip to Content
0
Former Member
Jun 09, 2016 at 10:25 AM

How to get Property from EntityType in ODATA

1019 Views

HI Experts,

How i can get value of property from a entitytype in ODATA.

sample ODATA:

<EntityType Name="MyDataOverview" sap:content-version="1">

<Key>

<PropertyRef Name="ID"/>

</Key>

<Property Name="count" Type="Edm.String" Nullable="false" sap:rbShowValueText="false" sap:label="count" sap:creatable="false" sap:updatable="false" sap:filterable="false"/>

<Property Name="text" Type="Edm.String" Nullable="false" MaxLength="30" sap:rbShowValueText="false" sap:label="text" sap:creatable="false" sap:updatable="false" sap:filterable="false"/>

<Property Name="key" Type="Edm.Int32" " sap:rbShowValue="false" sap:label="key" sap:creatable="false" sap:updatable="false" sap:filterable="false"/>

</EntityType>

I tried this {/MyDataOverviewSet/count}, but its not working.

Can you please help on this.

thanks,

Sandeep