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

Dynamic Table Delete All Binding Context

$
0
0

Hi Expert ;

I use sap.ui.table.DataTable when I call function everytime duplicate table again and again.How can ,ı solve this problem,

 

There is my controller code,

 

 

 

 

 

sap.ui.controller("sap.ui.demo.myFiori.view.Master", {

 

 

    onPressSearch: function (evt) {

        

 

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

    showNoData : true, 

    columnHeaderHeight : 12,

    width: '100%'

});

        calistir();

 

     ........//There string process

 

 

            rows = JSON.parse(str.toString());

 

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

            oModel.setData({modelData: rows});

            oTable.setModel(oModel).bindRows("/modelData");

            oTable.setModel(oModel);

 

}

oTable.placeAt("table");

Viewing all articles
Browse latest Browse all 6178

Trending Articles



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