Skip to Content
avatar image
Former Member

Use a non header entity(media entity) field to display image on Object header

Hello Experts

I am facing issues in displaying image from Odata into frontend from backend table.

I have created 2 entities one header and one other Media type entity which saves the image content in a backend table.

Both on these entities are connected via a Key Field BookId thru associations. So when data is saved it saves main header data in Header entity and image details in Media entity and their relation is thru BookID.

Problem is I want to display the image which will come from this Media entity into the Object header only where header data is displayed but as per Fiori Master detail it makes the item level details displaying all the entries.

I am not able to change the data set also for the Image control.

Please see below scrnshot for the same.

BookdetailHdr is header entity and BookImage saves the image for that BookId


Controls where Image is to be displayed from BookImage entity

the dataset can only be changed from main detail.view.xml node but that will change mapping for other fields.

How can I change the mapping to below dataset

The above dataset is not selectable on clicking the Image control but main detail.view.xml node. Also it should only display image pointing to that BookId.

How can this be done?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers