Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3189

Data Binding Odata with expand

$
0
0

Hi All,

 

I have a question to data binding in UI5

 

The relationship of my entity types is:

Patient --> Treated --> Doctor

1:N               N:M

 

I'm working with the master-detail app. My requirements are now to show all the doctors which treated one patient.

 

Actually I get the properties of Patient and Treated shown by binding i.e. Patient(Patient1). This works fine.

But now I want to show all the doctors for one patient, which were selected.

 

Is this now possible to get the data of the Doctors entity with odata services?

I was trying to do it with expand, but was not able to get it solved. I'm also not sure if this is the right way to do it?

 

If I call my service directly than it looks fine:

services.xsodata/PATIENT(1585)/Treated?$expand=Doctor

 

It would really nice if one of you could guide me.

 

Many thanks!

Dirk


Viewing all articles
Browse latest Browse all 3189

Trending Articles



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