Hello Everybody
I use the DBtreeview to show information about our LAN/WAN.
In my table all records have an ID and a PARENTID
This code works:
var _binding = elements.objtreeview.createBinding(controller.getServerName(), controller.getTableName());
_binding.setNRelationName("ivid_to_ivparentid");
_binding.setTextDataprovider("ivid");
elements.objtreeview.setTreeColumnHeader("Netzknoten");
elements.objtreeview.createColumn(controller.getServerName(), controller.getTableName(), 'Name', 'netzname');
elements.objtreeview.createColumn(controller.getServerName(), controller.getTableName(), 'City', 'city');
elements.objtreeview.createColumn(controller.getServerName(), controller.getTableName(), 'Location', 'location');
elements.objtreeview.createColumn(controller.getServerName(), controller.getTableName(), 'Street', 'street');
and show a result like this(plus city,location and street for each record)
root
–1 Coreswitch1 in Datacenter1
----2 Floorswitch1
------4 Roomswitch1a
------ 5 Roomswitch1b
----3 Floorswitch2
------ 6 Roomswitch2a
------ 7 Roomswitch2b
Now i have a PARENTID2 in my records, because all Floorswitches are additionaly connected to Coreswitch2 in datacenter2.
Example:
Floorswitch1 has PARENTID = 1 (connection to coreswitch1 in datacenter1) and PARENTID2 = 9 (connection to coreswitch2 in datacenter2)
I want to get a result like this:
root
–1 Coreswitch1 in Datacenter1
----2 Floorswitch1
------ 4 Roomswitch1a
------ 5 Roomswitch1b
----3 Floorswitch2
------ 6 Roomswitch2a
------ 7 Roomswitch2b
–9 Coreswitch2 in Datacenter2
----2 Floorswitch1
------ 4 Roomswitch1a
------ 5 Roomswitch1b
----3 Floorswitch2
------ 6 Roomswitch2a
------ 7 Roomswitch2b
Can this be done with the Servoy DBtreeview ???
If not, any other idear??
Any help welcomed
Best regards
Albert