Implementing tree structure in Sapui5 and restricting parent property

Note that “sap.ui.model.ClientTreeBinding” which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. I would suggest to try below:

In XML view:

<TreeTable rows="{path: '/pathToData', parameters: { arrayNames: ['children'] } }" >

In JSON view:

treeTable.bindRows({path: '/pathToData', parameters: { arrayNames: ['children'] }});

For more details about SAPui5 tree structure, you can navigate to following link:

Updated on: 17-Dec-2019


Kickstart Your Career

Get certified by completing the course

Get Started