Skip to Content
0
Apr 02, 2015 at 11:00 AM

How to clear table's data in sapui5?

7230 Views

Hello UI5 people,

Please tell me how to clear table's data? When i click on Refresh button i want everything from my table to get removed. Table should become empty i.e should not show any data.

I am using following code to clear textboxe:

sap.ui.getCore().byId('dlrNum-col0-row0').setValue('');

which is working fine, but there will be many rows and columns in the table so there must be a way to clear data in just one go without writing much of code.

Please help,

Thank you,

Regards,

Chetna