Skip to Content
1

SAP Fiori CRUD Master-Detail Application Template binding issue

Jan 03, 2017 at 04:32 PM

198

avatar image

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!

OData | ui
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Krishna Kishor Kammaje
Jan 04, 2017 at 04:59 PM
2

Issue is with your OData model.

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Yes that works, thanks Krishna!

0

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.

0

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)

0