Skip to Content
0
Former Member
Apr 16, 2014 at 11:00 AM

Get all the rows of the table

6940 Views

Hi,

In my example I want to get all the rows of the table. The table has 20 rows. The visibleRowCount is set to 7 and firstVisibleRow is set to 3.

I have created the table as

var oTable = new sap.ui.table.Table({

id: "oTable",

title: "My Table",

visibleRowCount: 7,

firstVisibleRow: 3,

selectionMode: sap.ui.table.SelectionMode.Single

});

I tried to get the rows of the table using the below code

var table = sap.ui.getCore().byId("oTable");


var rows = table.getRows(); // Returns only 7 rows

How to get all the rows of the table when the table is populated with a odata service ?