cancel
Showing results for 
Search instead for 
Did you mean: 

How to do grouping in sap.ui.table which has duplicate row values

rmanoh
Explorer
0 Kudos

Hi Experts,

I have done grouping for sap.m.table. Now, I want to do grouping on sap.ui.table to merge duplicate row values. which should look like this.

rmanoh_0-1710758765264.png

and this is the code I have done in xml file so what needs to be done to group suppliers.

<core:FragmentDefinition xmlns:core="sap.ui.core"
	xmlns="sap.ui.table"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns:u="sap.ui.unified"
	xmlns:c="sap.ui.core"
	xmlns:m="sap.m">
	<Table rows="{TTGRFQDetailModel>/DetailHeader/toSuppBidDetail/results}"   selectionMode="None">
		<columns>
			<Column width="11rem" grouped="true" > 
				<m:Label text="{i18n>supplier}" />
				<template>
					<m:Text text="{TTGRFQDetailModel>SupplierName}" wrapping="false" />
				</template>
			</Column>
			<Column width="11rem">
				<m:Label text="{i18n>Round_No}" />
				<template>
					<m:Text text="{path:'TTGRFQDetailModel>RoundDocumentNo',formatter:'.formatter.RoundFormatter'}" wrapping="false" />
				</template>
			</Column>

		</columns>
	</Table>

</core:FragmentDefinition>

 

 

Accepted Solutions (0)

Answers (0)