Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: What to choose as service: XSJS or XSOData?

$
0
0

Hello Thomas!

 

Thank you for answer.

I've read and watched your video about associations, events and Content-Ids but I want to clarify something. Lets say I have two tables: Master and Details with one-to-many relation. I define them in XSOData service like this:

service {    "demo::MASTER_TBL" as "Master"    create events(        before "pathToXSJSExit" // here I generate ID for Master    );    "demo::DETAILS_TBL" as "Details";    association "MasterToDetails" principal "Master"("ID") multiplicity "1"
 dependent "Details"("MASTER.ID") multiplicity "*";
}

I suppose I should use userexit to set MASTER.ID field for Details table. But where I should use it? In create event for Details or for association?

 

 

 

About Navigation - yes, I meant navigation keyword. Thank you for describing it.

 

 

Regards,

Lev


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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