Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Get all the rows of the table

$
0
0

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  ?       


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>