BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

howto fill jdbtree

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
ken brewer
Guest





PostPosted: Wed Dec 10, 2003 2:48 am    Post subject: howto fill jdbtree Reply with 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.

-Ken


Back to top
Paul Furbacher
Guest





PostPosted: Thu Dec 11, 2003 6:27 pm    Post subject: Re: howto fill jdbtree Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.