Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

Table Record Count

$
0
0

Hi All

 

I'm trying to populate the recoprd count at the table header level .

 

I'm getting Header title as

 

 

                       

          var oControl;

          this.oSHTable = new sap.ui.table.Table("soTable",{

                   visibleRowCount: 20,

                   editable: false,

                  // enableSelectAll: false,

 

                   });

          this.oSHTable.setTitle("Customer_Master");

         

         

               //Table Column Definitions

          oControl = new sap.ui.commons.TextView().bindProperty("text","Customer");

          this.oSHTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text: "Customer"}),

              template: oControl, sortProperty: "Customer", filterProperty: "Customer", filterOperator: sap.ui.model.FilterOperator.EQ, flexible: true }));

         

          oControl = new sap.ui.commons.TextView().bindProperty("text","City");

          this.oSHTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text: "City"}),

              template: oControl, sortProperty: "City", filterProperty: "City", filterOperator: sap.ui.model.FilterOperator.Contains }));

      

         

                

    

          this.oSHTable.setModel(oModel);

             var sort1 = new sap.ui.model.Sorter("Customer", true);

            

             this.oSHTable.bindRows({

                    path: "/Customer",

                    parameters: {

                         //select: "Customer,City"

                             },

                    sorter: sort1

                });

            

            

                 var orows = this.oSHTable.getRows();

                 var gmodel = this.oSHTable.getModel();

                  var gdata = gmodel.getData();

               var rowc =  gmodel.getProperty("irows");

            

            

            

    //         this.oSHTable.setTitle("Customer123");

             this.oSHTable.setTitle("Record="+rowc);

             oLayout.createRow(this.oSHTable);

               

            return oLayout;

            }

 

    });

 

 

 

 

 

I want the record count next to record =

 

Thanks in adv


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

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