02-19-2024 6:17 PM - edited 02-19-2024 7:55 PM
Hello Folkes!
I am new to sap ui5, I would like to know, In a List Report App, how I can get all nodes expanded without having to do it manually on click of Go button, and once all nodes are expanded user can collapse the nodes or keep them as it is.
I have used property :-
Hi Veronica,
there is a way how you do this. Once you have fetched your tree table (hopefully you know the ID of that table).
All you need to do is to make use of the numberOfExpandedLevels parameter, when you bind the rows of your tree table:
oTable.bindRows({
path: "...",
parameters: {
numberOfExpandedLevels: 2 //or if you have even more nodes than two, then just a higher number
}
});
More information can be found in the official documentation: https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.table.TreeTable%23methods/Summary
Best,
Edrilan Berisha
SAP S/4HANA Cloud Financials Development
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.