- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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'] } }" > ... </TreeTable>
In JSON view:
treeTable.bindRows({path: '/pathToData', parameters: { arrayNames: ['children'] }});
For more details about SAPui5 tree structure, you can navigate to following link:
Advertisements