cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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).


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

    success: function(oData){
        oTreeTable.setBusy(false);
    }
});

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!
SePo

Accepted Solutions (0)

Answers (0)