I want to display a tree similar to one of the following:
TreeTableView https://www.b4x.com/android/forum/threads/treetableview.81611/
TreeView https://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/
But I'd really like to loosely replicate one of the above views using Flexible Table
https://www.b4x.com/android/forum/threads/class-flexible-table.30649/
I will need to fill the tree from a local Sqlite table or from a jRDC2 server using CSV. I'd like it to work in B4A and B4i. B4J would also be of benefit.
My questions are, how difficult would it be to have Flexible Table to:
1) Indent the tree node & icon (both in the 1st column) according to the depth of the node in the tree? The "icon" can be an Awesome or Material symbol to represent the ">".
2) Allow user to click on the ">" tree node icon to expand the branch of the tree? In other words, can additional rows be added from the Sqlite table when the user clicks on the node to expand it? I don't want to rebuild the entire tree just to add 3 or 4 subnodes. (Or can rows be hidden and unhidden when the branch is expanded?)
Updating the tree after it has been built will also allow me to build the "tree" using the local Sqlite database and then update it by contacting the jRDC2 server to get CSV data to display the latest data.
What do you think? Is this possible?
Or am I barking up the wrong tree? (Sorry, couldn't resist)
TIA
TreeTableView https://www.b4x.com/android/forum/threads/treetableview.81611/
TreeView https://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/
But I'd really like to loosely replicate one of the above views using Flexible Table
https://www.b4x.com/android/forum/threads/class-flexible-table.30649/
I will need to fill the tree from a local Sqlite table or from a jRDC2 server using CSV. I'd like it to work in B4A and B4i. B4J would also be of benefit.
My questions are, how difficult would it be to have Flexible Table to:
1) Indent the tree node & icon (both in the 1st column) according to the depth of the node in the tree? The "icon" can be an Awesome or Material symbol to represent the ">".
2) Allow user to click on the ">" tree node icon to expand the branch of the tree? In other words, can additional rows be added from the Sqlite table when the user clicks on the node to expand it? I don't want to rebuild the entire tree just to add 3 or 4 subnodes. (Or can rows be hidden and unhidden when the branch is expanded?)
Updating the tree after it has been built will also allow me to build the "tree" using the local Sqlite database and then update it by contacting the jRDC2 server to get CSV data to display the latest data.
What do you think? Is this possible?
Or am I barking up the wrong tree? (Sorry, couldn't resist)
TIA