Skip to Content
Former Member
Apr 10, 2017 at 03:24 PM

Remove Items from Table SAPUI5

3206 Views Last edit Apr 10, 2017 at 03:25 PM 2 rev

I've a table

<Table id="idcorrelationData" inset="false" mode="MultiSelect" items="{/correlationData}">
			<Title text="Correlation Data" level="H2"/>
			<Button icon="sap-icon://add" press="onAddNewRow"/>
			<Button icon="sap-icon://delete" press="onRemoveLasRow"/></Toolbar>
		<Column hAlign="Center">
			<Text text="Data Location"/>
		<Column minScreenWidth="Tablet" demandPopin="true" hAlign="Center">
			<Text text="Accepted Value"/>
				<Input enabled="{/fieldEditAble}" value="{dataLocation}"/>
				<Input enabled="{/fieldEditAble}" value="{acceptedValue}"/>

which is binded with the JSON. I've a button Delete i want to remove all selected rows from table on press button. How i can do that

	var correlationData = [{
				"dataLocation": "",
				"acceptedValue": ""