 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
ken brewer Guest
|
Posted: Wed Dec 10, 2003 2:48 am Post subject: howto fill jdbtree |
|
|
Is there anyway to automatically fill a jdbtree from a dataset? I'm confused
by the docs as to whether it will only work as a picklist/lookup or if it
can be filled also. If so, how does the tree know how to display leafs and
hierarchies? Of course I can do it manually but trying avoid that. I also
posted about looking for a treetable fillable by dataset but got no
response.
-Ken
|
|
| Back to top |
|
 |
Paul Furbacher Guest
|
Posted: Thu Dec 11, 2003 6:27 pm Post subject: Re: howto fill jdbtree |
|
|
ken brewer wrote:
| Quote: | Is there anyway to automatically fill a jdbtree from a dataset? I'm confused
by the docs as to whether it will only work as a picklist/lookup or if it
can be filled also. If so, how does the tree know how to display leafs and
hierarchies? Of course I can do it manually but trying avoid that. I also
posted about looking for a treetable fillable by dataset but got no
response.
|
I haven't used JdbTree. However, in samples/dbswing/htmlviewer,
the dialog uses the component. You may have already looked at
this. If not, TreeModelMaker shows how to populate the
model. The example is filling the tree model manually,
but since the table (nodeData) could be represented by
a DataSet, you could use a dataset, but you'd
have to massage it from a table to a graph representation.
Modify TreeModelMaker to use a dataset instead of the
hand-coded nodeData. Or extend JdbTree, and provide a
"setModel(DataSet modelDataset)", and do the massaging there.
In such a scheme, there would be two datasets associated with
the tree component: 1) that which provides the data for
the tree model, and 2) that which provides is bound to
the navigational feature of the JdbTree.
Seems a bit complicated, and I'm sure I haven't covered
all the details.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|