Skip to Content
0

SAPUI5 - TABLE REPEAT FIELDS

Jul 11, 2017 at 11:41 PM

60

avatar image

Hi experts, I need your help

I need to display the material data in a table in WEBIDE - SAPUI5.

The backend system returns the data correctly, but the table only shows the last position.

This is the response in the request:

6000000080 00010 Cartón Tetrapack 5.000CA

6000000080 00020 DULCES 10.000KG

6000000080 00030 BOMBON 9.000KG

6000000080 00040 STRAWBERRY 5.000KG

6000000080 00050 Papel 7.000KG

6000000080 00060 BOMBON 5.000KG

6000000080 00070 MP AZUCAR 30.000KG

The table only shows the last position of the request:

Any idea to correct this?

It is urgent please.

Regards!

captura1.png (22.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

saurabh vakil Jul 12, 2017 at 05:50 AM
1

Can you show the code where you have declared your Table control? How have you done the data binding? Also, are you using SAPUI5 application template or some other template like SAP Fiori Worklist?

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

Hi saurabh vakil,

Thanks for your help

I'm using a SAP Fiori Worklist template,

Here is the code of the table:

<Table
				id="table"
				width="auto"
				items="{
					path: '/MaterialesSet',
					filters:[{
						  path: 'NumDocumento', 
						  operator: 'EQ',
						  value1: '6000000080' 
						}]
				}"
				noDataText="{worklistView>/tableNoDataText}"
				busyIndicatorDelay="{worklistView>/tableBusyDelay}"
				growing="true"
				growingScrollToLoad="true"
				updateFinished="onUpdateFinished">


				<headerToolbar>
					<Toolbar>
						<Title id="tableHeader" text="{worklistView>/worklistTableTitle}"/>
						<ToolbarSpacer />
						<SearchField
							id="searchField"
							tooltip="{i18n>worklistSearchTooltip}"
							search="onSearch"
							width="auto">
						</SearchField>
					</Toolbar>
				</headerToolbar>


				<columns>
					<Column id="numdocumento">
						<Text text="Numero de documento" id="numerodocuColumnTitle"/>
					</Column>
					<Column id="Posicion" hAlign="End">
						<Text text="Posicion" id="posicionNumberColumnTitle"/>
					</Column>
					<Column id="Nombre" hAlign="End">
						<Text text="Nombre" id="NombreNumberColumnTitle"/>
					</Column>
					<Column id="cantidad" hAlign="End">
						<Text text="Cantidad" id="cantida"/>
					</Column>
				</columns>


				<items>
					<ColumnListItem
						type="Navigation"
						press="onPress">
						<cells>
							<ObjectIdentifier
								title="{NumDocumento}"/>
							<Text text = "{PosMaterial}"/>
							<Text text = "{NombreMaterial}"/>
							<Text text = "{Cantidad}{Unidad}"/>
						</cells>
					</ColumnListItem>
				</items>
			</Table>

0