Hello Everybody
I’m fighting with the dbtreeview.
Servoy 6.0.5 Webclient
I have two views to my structured data and the users want to switch among these views.
One works with realtion “objectid_to_parentobjektid” , the other with relation ‘constractionid_to_parentconstractionid’
The data comes from the same table !!
When i place 2 dbtreeviews in my form side by side, everthing works.
With a button i can aktivate treeview1 (visible and enabled = true) and deactivate bdtreeview2 (visible and enabled = false)
and the other way round.
But on my form there is no place to show 2 treeviews side by side.
So i tried 2 things.
a) Placing the 2 treeviews at the same place above each other and do the same thing with my “Switch-Button”
The contence is show correctly, but the navigation buttons (+ -) to expand the nodes do only work in the treeview on top, not in the second one!??
DBLClicking methods on the columns work for both ???
b) Working with 1 treeview and switch the contents via button
remove all columns
remove all notes
1 =
var v_binding = elements.objtreeview.createBinding(‘maxdb’,‘rbobjekte’);
v_binding.setNRelationName(“objektid_oberobjektid”);
v_binding.setTextDataprovider(“rbobjekteid”);
…
2 =
var _binding = elements.objtreeview.createBinding(‘maxdb’,‘rbobjekte’);
_binding.setNRelationName(“anlagenid_to_oberanlagenid”);
_binding.setTextDataprovider(“rbanlagenid”);
…
This doesn’t work!
The content of 1 is shown automaticly (on show). Switching the content to 2 doesn’t work ???
Any help welcomed.
Best regards
Albert