cancel
Showing results for 
Search instead for 
Did you mean: 

FIORI: display expanded data just for one, selected record

stepniake73
Explorer
0 Kudos
59

Hi, I am trying to expand data in my fiori app. I am using example from


https://www.techippo.com/2017/09/bind-expand-sapui5-xml-view.html

As we can see, in example we have a full list of all flights:
items="{path : '/FlightSet' , parameters:{expand : 'ToFlightSchedules,ToFlightBooking'}

I need to get data about only one selected flight. I can not use something like this:
items="{path : '/FlightSet('id_of_something')' , parameters:{expand : 'ToFlightSchedules,ToFlightBooking'}
because I have error (to many apostrophes 😉 ).

Of course, I have prepared getaway on backend, which gives me correct data, for example:

/PracownicySet?$expand=toSzkolenia - it returns me expanded data for all records
/PracownicySet('00744272')?$expand=toSzkolenia,toHistoriaStanowisk - it returns me expanded data only for record with id 00744272.

What should I do to display expanded data just for one, selected record?

Accepted Solutions (0)

Answers (0)