Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Adding two or more navigation in xsodata services ?

$
0
0

Hi,

I want to add navigation property to my oData services. I want to add two navigation property -

1. From Sales Order - to - Business Partner table

2. From Sales Order - to - Sales Order items table.

 

I can easily build one navigation. Let us say from Sales Order - to - Business Partner. What is the syntax to add the next navigation from Sales Order oData service ?

 

Example - to add one navigation ---

 

Filename - SalesOrder.xsodata

Code -

 

service {

    "empdemo.data::SalesOrder" as "SalesOrders" navigates ("SalesOrderBusinessPartner" as "BusinessPartners");

       

    "empdemo.data::BusinessPartner" as "BusinessPartners";

   

    association "SalesOrderBusinessPartner" principal "SalesOrders"("BusinessPartnerID") multiplicity "1"

    dependent "BusinessPartners"("BusinessPartnerID") multiplicity "1";       

}

 

How do I add the next navigation (From SalesOrder to SalesOrderItem table) in the same file ?


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>