Skip to Content
0
Former Member
Jul 13, 2015 at 04:36 AM

Tree table not refreshing on model change in IE

299 Views

We are using a tree table in a view used in MVC pattern.

I have single JSON Model defined as below:

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

var data = {

dataSources:{

CDSDataSource:false,

ODataDataSource:true,

DDICDataSource:false

},

destinations : [],

serviceData : {

root:[]

},

entityTypeName:"",

connectionData : {

root:[]

},

serviceMetaData: {

root:[]

},

xmlMetadata:{

root:[]

},

entitySetData:{

root:[]

},

entitySetOperations:{

root:[]

},

constructedServiceMetadata:{

root:[]

},

filterableProperties:{

root:[]

},

selectionString:"Select Systems / Source Types"

};

this.oModel.setData(data);

I am using this model to bind multiple controls in the viewsuch as Tables, Treetable, Drop down, Textfields etc.

On one of the event of a control I am updating the part of the main model which was bound to the tree table. (which was initially an empty model), But after updating the model with values and doing the

that.oModel.setProperty("/serviceData/root",rootServiceNodes);

that.oView.getTreeTable().bindRows("/serviceData");

With this code my view would be initially empty and on the event the treatable refreshes and shows the data in boith Google Chrome and Mozilla firefox. But when tried the same thing in Internet Explorer the tree table will always be showing "No Data".

Please let me know if I have to handle tree table binding and re rendering with some different logic for IE?