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

SAPUI5 Filter table when button press

$
0
0

Hi,

 

I want to filter all table data when I press a button. I want to do the filtering from server side. I can read filtered data from OData but I couldn't manage to bind it to table again. Here is my code:

 

filterTableModel : function(oEvent){

 

          var falTbl = this.getView().byId("faaliyetTbl"); //get the table

          var tempModel = falTbl.getModel(); // get table model

          tempMode.read("/FaaliyetServisiSet",null,["$filter=(Klnad eq 'BURAKC')"],true,null,null); // here I can see the filtered content from Chorme debug

}


As you can see I couldn't find the proper code to bind the model back to table. What should I use?


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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