Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers