Hello everyone,
I published Odata service.
When I am trying to get:
Code |
---|
.../odata/standard.odata/AccumulationRegister_PartnersSettlements?$top=10 |
then I receive top 10 records from PartnersSettlemtns register. It works fine.
But when I am trying to get:
Code |
---|
.../odata/standard.odata/AccumulationRegister_PartnersSettlements_Balance?$top=10 |
then I receive error:
Code |
---|
Entity not found. |
Why? How can I get information from Balance virtual table using Odata?
A bit more information from
Code |
---|
...odata/standard.odata/$metadata |
for normal register table and Balance table and FunctionImport (how to call this FunctionImport?)
Code |
---|
<EntityType Name="AccumulationRegister_PartnersSettlements" OpenType="true"> <Key> <PropertyRef Name="Recorder"/> <PropertyRef Name="Recorder_Type"/> </Key> <Property Name="Recorder" Type="Edm.String" Nullable="false"/> <Property Name="RecordSet" Type="Collection(StandardODATA.AccumulationRegister_PartnersSettlements_RowType)" Nullable="false"/> <Property Name="Recorder_Type" Type="Edm.String" Nullable="false"/> </EntityType> |
Code |
---|
<ComplexType Name="AccumulationRegister_PartnersSettlements_Balance"> <Property Name="Company_Key" Type="Edm.Guid" Nullable="true"/> <Property Name="Partner" Type="Edm.String" Nullable="true"/> <Property Name="Document" Type="Edm.String" Nullable="true"/> <Property Name="Currency_Key" Type="Edm.Guid" Nullable="true"/> <Property Name="SettlementType" Type="Edm.String" Nullable="true"/> <Property Name="ReservationDocument" Type="Edm.String" Nullable="true"/> <Property Name="AmountBalance" Type="Edm.Double" Nullable="true"/> <Property Name="AmountNationalBalance" Type="Edm.Double" Nullable="true"/> <Property Name="Partner_Type" Type="Edm.String" Nullable="true"/> <Property Name="Document_Type" Type="Edm.String" Nullable="true"/> <Property Name="ReservationDocument_Type" Type="Edm.String" Nullable="true"/> </ComplexType> |
Code |
---|
<FunctionImport Name="Balance" IsBindable="true" IsSideEffecting="false" ReturnType="Collection(StandardODATA.AccumulationRegister_PartnersSettlements_Balance)"> <Parameter Name="bindingParameter" Type="StandardODATA.AccumulationRegister_PartnersSettlements"/> <Parameter Name="Condition" Type="Edm.String"/> <Parameter Name="Dimensions" Type="Edm.String"/> <Parameter Name="Period" Type="Edm.DateTime"/> </FunctionImport> |
I need to get info from Balance table but I don't know how to do it. Thank you in advance for all your help.
Kris