Skip to Content
Aug 31, 2018 at 12:28 PM

Manually read data for TreeTable (OData + operationMode: Server)



I am currently trying to implement an TreeTable with OData binding that operates in Server mode.

Everything is fine with the requests generated by the folding / unfolding nodes (requests generated by the TreeTable).

What I'm trying to do is to manually read data for the TreeTable and have it displayed. For example: I'm selecting one node and I want that at the push of a button, the node is fully expanded (expand all functionality).

this.getModel().read(sPath, {
    filters: [
        new Filter("Parent", sap.ui.model.FilterOperator.EQ, "idOfParent"),

    success: function(oData){

The problem with this approach is that even though data is read via this.getModel().read and added to the model, the TreeTable is not updated. It seems that the TreeTable binding is not aware of the data manually read and added into the model.

Is there any way to make the TreeTable binding aware of the new data?

Thank you! Cheers!