DBTreeView alternative?

Questions and answers on developing, deploying and using plugins and JavaBeans

DBTreeView alternative?

Postby maria » Mon Sep 28, 2009 2:40 am

I'm currently using the bean DBTreeView to display the main menu of application modules (customers, employees, etc.).
But the presentation does not really look good because of the dotted lines between the nodes of the tree.
I'd like to preserve the tree functionality but make it look like a normal list menu with submenu items popping up of it (sliding out would be cool, fancy presentation is more than welcome).
Is it possible to hide these connector lines or maybe there is an alternative to the tree, a decent example would be much appreciated.
Thanks.

Cheers,
Maria
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: DBTreeView alternative?

Postby ngervasi » Mon Sep 28, 2009 12:16 pm

Have a look at the DBTreeTableView bean, it's a variant of the DBTree bean and it's included in the Servoy default install, maybe it could fit your needs.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: DBTreeView alternative?

Postby ngervasi » Mon Sep 28, 2009 12:19 pm

A picture is worth a thousand words...

Screen shot 2009-09-28 at 12.17.42.png
Screen shot 2009-09-28 at 12.17.42.png (185.27 KiB) Viewed 12936 times
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: DBTreeView alternative?

Postby maria » Tue Sep 29, 2009 1:58 am

ngervasi wrote:A picture is worth a thousand words...

Screen shot 2009-09-28 at 12.17.42.png


Nicola,
I saw this picture and was trying to reproduce a similar view under Windows but in vain.
I can't use setShowsRootHandles(false) (based on JTree class) with DBTreeView, it's not recognized by the bean.
Do you know how to make it work?
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: DBTreeView alternative?

Postby maria » Tue Sep 29, 2009 1:59 am

ngervasi wrote:Have a look at the DBTreeTableView bean, it's a variant of the DBTree bean and it's included in the Servoy default install, maybe it could fit your needs.


setShowsRootHandles(true) does not work on this one either.
I don't really need a table view of the tree, thanks.
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: DBTreeView alternative?

Postby ngervasi » Tue Sep 29, 2009 2:12 am

Sorry, then I guess I can't help you. I think that the appearence of the tree is based on the look&feel.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: DBTreeView alternative?

Postby maria » Wed Sep 30, 2009 4:53 am

ngervasi wrote:Sorry, then I guess I can't help you. I think that the appearence of the tree is based on the look&feel.


Looks like they do :(
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: DBTreeView alternative?

Postby domnulnopcea » Mon Oct 05, 2009 1:52 pm

Hello,

I am in great need of a tree bean that would allow me to take it's data from a dataset or array or something!

The dbtreebean uses a parent-children relation to retrieve the data but this does not help me!

Do you know an alternative?

I would appreciate it!

Thanks
domnulnopcea
 
Posts: 42
Joined: Wed Dec 10, 2008 3:26 pm

Re: DBTreeView alternative?

Postby ROCLASI » Mon Oct 05, 2009 2:21 pm

Hi,

First of, it's not needed to post the same question in 2 different threads. It doesn't make it answered any faster.
As for your question, right now the DBTreeView bean doesn't use datasets. You can file a feature request for that.

Why can't you use foundsets and relations ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: DBTreeView alternative?

Postby domnulnopcea » Mon Oct 05, 2009 2:39 pm

but is there a tree bean in witch I could load a data differently from using a relation parent-children?
domnulnopcea
 
Posts: 42
Joined: Wed Dec 10, 2008 3:26 pm

Re: DBTreeView alternative?

Postby Gary R. Schaecher » Mon Oct 05, 2009 3:24 pm

There is a bean that works in the SmartClient and WebClient called treeview bean. We paid to have it developed. It works with datasets very well. It is very complete. It supports style sheets, right mouse cliecks, etc. We told Servoy that they could provide it other clients if they wished to do so. In fact we have asked that it be delivered as an out-of-the-box item. Would make our installs much simpler if they did! :) We had to have datasets rather than just foundsets to accomplish what we were doing in our Omnis environment. Ask Servoy if you can use it....

Gary
TMA Systems, LLC
Gary R. Schaecher
TMA Systems, LLC
www.tmasystems.com
Gary R. Schaecher
 
Posts: 72
Joined: Sat Jan 06, 2007 11:01 pm

Re: DBTreeView alternative?

Postby domnulnopcea » Mon Oct 05, 2009 3:31 pm

Wow!

thanks a lot for this info! You are very kind!

I will start the procedure to contact about this bean! Thank you again!
domnulnopcea
 
Posts: 42
Joined: Wed Dec 10, 2008 3:26 pm

Re: DBTreeView alternative?

Postby Gabi Boros » Mon Oct 12, 2009 1:39 pm

Hi to all,

Here is the link to the treeview bean, an alternative for dbtreeview, that works with datasets instead of foundsets.
http://www.servoy.com/downloads/downloa ... plugin.zip
Please note that it only works with Servoy 5.0 !

P.S:
The zip file contains the bean, a brief description of its functions, and a sample solution
Gabi Boros
Servoy
Gabi Boros
 
Posts: 402
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: DBTreeView alternative?

Postby rioba » Tue Oct 13, 2009 9:13 am

I have imported the sample solution included with the TreeView plugin. When I try to expand the main.js form node in the Solution Explorer panel in Eclipse the arrow disappears and nothing is shown (controller, elements and so on). The start.js form is ok. As a consequence, when I try to start the smart client, after the initial form, I get an error
TypeError: Cannot call method "setDataSet" of undefined (xxx/workspace/servoy_sample_treeview/forms/main.js#46)
at xxx/workspace/servoy_sample_treeview/forms/main.js:46 (initTreeview)
rioba
 
Posts: 242
Joined: Mon Aug 08, 2005 4:26 pm

Re: DBTreeView alternative?

Postby Gabi Boros » Tue Oct 13, 2009 9:56 am

copy the treeview.jar from the zip into <servoy5_dir>/application_server/beans;
the sample uses svyCore as module, you need to have that in the workspace; if
you do not have it, you can checkout it from "localhost" using Servoy's team provider

rioba wrote:I have imported the sample solution included with the TreeView plugin. When I try to expand the main.js form node in the Solution Explorer panel in Eclipse the arrow disappears and nothing is shown (controller, elements and so on). The start.js form is ok. As a consequence, when I try to start the smart client, after the initial form, I get an error
TypeError: Cannot call method "setDataSet" of undefined (xxx/workspace/servoy_sample_treeview/forms/main.js#46)
at xxx/workspace/servoy_sample_treeview/forms/main.js:46 (initTreeview)
Gabi Boros
Servoy
Gabi Boros
 
Posts: 402
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Next

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 9 guests