cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori CRUD Master-Detail Application Template binding issue

How do I bind the table on the detail page correctly so it shows all items? The table show correct number of items but it repeats the last item on each row.

This is my data:

Table only shows the last item:

DetailView.xml:

<Table noDataText="{i18n>detailLineItemTableNoDataText}" items="{DeliveryISet}" width="auto" updateFinished="onListUpdateFinished" busyIndicatorDelay="{detailView>/lineItemTableDelay}" class="sapUiResponsiveMargin">
										<items>
											<ColumnListItem>
												<cells>
													<ObjectIdentifier title="{Matnr}"/>
												</cells>
											</ColumnListItem>
										</items>
										<columns>
											<Column minScreenWidth="Tablet" demandPopin="true" width="140px">
												<header>
													<Label text="Item ID"/>
												</header>
											</Column>
											<Column minScreenWidth="Tablet" demandPopin="true">
												<header>
													<Label text="Description"/>
												</header>
											</Column>
											<Column minScreenWidth="Tablet" demandPopin="true" width="100px">
												<header>
													<Label text="Amount"/>
												</header>
											</Column>
										</columns>
									</Table>

Dropbox link to the app source code

Any help much appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor

Issue is with your OData model.

Posnr should be a key as well in addition to Vbeln.

0 Kudos

Yes that works, thanks Krishna!

Former Member
0 Kudos

How did you resolve your problem?
I have the same problem but I am using the DDIC s_custom, sbook and when I want to display in the detail view the bookings for a customer it overload the last item although side Odata Service it works correctly.

For the CUSTOMER I have one primary key: Id and for the BOOKINGS one primary key Customid which I match to build an association ( customer )1-N(bookings). When I insert a second primary key to BOOKINGS it changes everything. I get null results for any customer.

Any solution please?

Thanks in advance.

kammaje_cis
Active Contributor
0 Kudos

Can you please create a new question for your issue? Resurrecting a resolved question is against the SAP Community Guidelines. https://www.sap.com/community/about/rules-of-engagement.html

Krishna (Moderator)

Answers (0)