Hi,
I don't know how the MDK handles OData associations and navigation and I couldn't find anything useful in the documentation or the different blogs.
I have the following data model:
entity Reports { key ID: UUID; expenses: Composition of many Expenses on expenses.report = $self; } entity Expenses { key ID: UUID; report: Association to Reports; }
I'd like to display the expenses associated to a report on a detail page. However I don't know how to achieve this. Maybe using the ReadLink property?
Here's how I can get the expenses for a given report using my OData service:
https://hostname:443/odata/v2/ExpensesService/Reports(guid'039f38bd-bd83-49b2-b3b8-793a012478bb')/expenses
Note: the generated list/detail application gives me an error and the expenses are not displayed (see https://answers.sap.com/questions/766202/mdk-read-entityset-failed-error-missing-property.html)
Cheers,
Pierre