Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Binding OData Service which returns an Array

$
0
0

Hi Swati,

 

 

Why would you use bindProperty instead of directly binding the property text, something like this:

 

oTable.addColumn(new sap.ui.table.Column({

        label: new sap.ui.commons.Label({text: "SCN"}),

        template: new sap.ui.commons.TextView()({text: "{property2}"}),

        sortProperty: "PAN",

        filterProperty: "PAN",

        width: "300px"

       }));


also use filters, aggregation binding and set the model after binding the row, like below:

    

      filter = new sap.ui.model.Filter("Account","EQ", "20")

       oTable.bindAggregation("rows","/QueryAccountSet",null,filter);


          or using below:


          oTable.bindRows("/QueryAccountSet",null,filter); or using below: 

    

      

   //Create a model and bind the table rows to this model

       oTable.setModel(oModel2,);

 

Hope this helps.


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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