Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

getContexts fetches only 100 contexts

$
0
0

I am trying to fetch rows from the oTable and Model. I am using getContexts method but it return only 100 records. I dont know the way out.

 

var oData={

                                        allocation:[],                              // final data

                                        practice:[],                              // dynamic

                                        location:[],                              // static

                                        grade:[],                                        // static

                                        type:[],                                        // static

                                        customer:[],                              // dynamic

                                        skill:[],                                        // dynamic

                                        onsite:[],                                        // dynamic

                                        account:[],                                        // dynamic

                                        visaStatus:[]                              // static

                    }

var oModel_tab = new sap.ui.model.json.JSONModel(oData);

              sap.ui.getCore().setModel(oModel_tab);

 

aFilters contains Filters on it...

 

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

                         visibleRowCount: 50,

                   firstVisibleRow: 3,

                        });

 

 

 

oTable.getBinding('rows').filter(aFilters);

This line give proper filtering data

oTable.getBinding('rows').filter(aFilters).getContexts();

whereas the get Contexts method gives only at max 100 contexts.


Viewing all articles
Browse latest Browse all 9169

Trending Articles



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