Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reconstuct a Tree with the info from a database  RSS feed

 
Peng Fan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, everyone!
Currently, I'm working on a program which is developed using the SWT/JFace library, the program retrieves records from a database table and then show those recodes on Table widget, the database table has column indicate that to which catogory a given recode belongs,so I placed a Tree widget beside the Table widget to navigate to a given category of recodes, the type of that column is VARCHAR in which i stored absolute tree paths like"a:b:c" or"a:b:c " or "a"("a" is always the root node) . My question is: How Can I Dynamically Reconstruct The Tree Using The Absolute Tree Path Information Retrieved From Some DB When I Run The Program? Do I made myself clearly?
If such a way to dynamically construct a tree is not easily feasible, cound you suggest me some better approaches. Thank you!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!