I got the problem with selection on DBTreeView node.
My problem is after i save the record then DBtreeView refresh and all the record id (including the lastest saved value), and I want to select the lastest value.
but it is not select to the lastest save value, it is select on the node which is the previously selected (before save a new record).
here i followed the follwing code. but which is not give what i excepted.
//the dbtreeview bean passes the row pk id from the selected node to this method
var selected_country_id = arguments[0]
globals.glb_itemId_text = selected_country_id;
//search for the row we have been passed in teh dbtreeview
controller.find()
hutpart_id = selected_country_id
var recordCount = controller.search()
It’s not clear for your code sniplet what you do to create a record and change the selection in the tree.
When you create new records in the underlying tables that are displayed in the tree, the tree will display those new records as new nodes in the appropriate location (meaning: under the appropriate parent, based on the relations you defined).
The DBTreeView bean will NOT automatically change selection, because you might want that in one scenario, but not in other scenario’s.
If you want the selection changed, you are in control of that. The bean offers fucntions to get and set the selectedNode/Path.
Sorry for my unclear message. and you assumption is correct.
""you create new records in the underlying tables that are displayed in the tree, the tree will display those new records as new nodes in the appropriate location (meaning: under the appropriate parent, based on the relations you defined). “”
Thank you for your reply and how can i implement that set and get selection method in seroy.
Is there a way to scroll-down in the tree view to the selected node?
When I select a node programmatically the tree is expanded but the selected node stays down there and the user can’t see it until they scroll-down manually.