Skip to main content
1-Visitor
October 2, 2014
Question

Tree population from database thing (InfoTable)

  • October 2, 2014
  • 1 reply
  • 794 views

Hi,

So I have a database table that has a child and parent relationship and I would like to populate a tree. I have tried doing this and the tree comes back empty.

LabelField - ChildName

ValueField - ChildName

IDField - ChildName

ParentIDField - ParentName

Any thoughts?


    1 reply

    1-Visitor
    October 8, 2014

    You should probably populate Tree with InfoTable that is based on NetworkConnection DataShape. 


    to connectionType from

    TWxPSiteGreenhousePsary Contains

    Greenhouse-B4 Contains TWxPSiteGreenhousePsary

    SensorNode-02 Contains Greenhouse-B4

    Greenhouse-B5 Contains TWxPSiteGreenhousePsary

    ...

    ...

    ...


    One of my working trees has such priperties values: 

    LabelField - to

    TooltipField -

    ValueField - 

    IDField - to

    ParentIDField - from

    You can start with them to see if your tree is working (as far as I can see your properties are the same).


    If you are not using NetworkConnection DataShape probably you are lacking 'connectionType' in your InfoTable.