Email Client

Share business templates, ideas, experiences, etc with fellow Servoy developers here

Email Client

Postby Harjo » Sun Oct 17, 2004 11:53 pm

Does this look nice? :D
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Westy » Mon Oct 18, 2004 12:03 am

Very very nice!

Please tell us more.
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby Harjo » Mon Oct 18, 2004 12:13 am

It's just a emailclient completely build in Servoy. And guess what: it works too! :D

The three main-components are:

* the mail-plugin
* the JsplitPanel bean
* and the dbtreeview bean.

and a lot of trying-erroring-editing-and retrying! :lol:
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby pbakker » Mon Oct 18, 2004 8:49 am

Looks very cool, Harjo!

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby ROCLASI » Mon Oct 18, 2004 9:14 am

Anyone knows how to set the node images ?
And can you set different images for each node?

Also it seems that the dbtree bean only works with Servoy 2.1.1.
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

Postby Harjo » Mon Oct 18, 2004 9:29 am

ROCLASI wrote:Anyone knows how to set the node images ?
And can you set different images for each node?

Also it seems that the dbtree bean only works with Servoy 2.1.1.


Yes, that is what I want to know too!
Jan B? can you help us out?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Blok » Mon Oct 18, 2004 10:08 am

Nice looking app! , the node image can be set by binding the imagedataprovider, like:
treeview.bindNodeImageMediaDataProvider('icon_column');// icon_column is of type media (database blob)
or
treeview.bindNodeImageURLDataProvider('icon_column');// icon_column is of type urls ,like http://www.cnn.com/images/xxxx.gif

Note the image is at best when 16x16 px.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby ROCLASI » Mon Oct 18, 2004 10:56 am

This is very cool.
But I have something weird going on.
I have 5 nodes each with a custom icon (from a related table).

When I initialise the tree I see that my icons are shifted 1 position.
So its icon 5,1,2,3,4.

Then when I expand/collapse a row the first row takes the icon of that row (the correct icon for that row I might add).

Sounds like a bug.

Servoy 2.1.1b1-build 311
Java version 1.4.2-38
Mac OS X 10.3.5
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

Postby pbakker » Mon Oct 18, 2004 11:02 am

I tried to get the icons from teh Media library, by adding this to the refreshTreeView method:
Code: Select all
elements.dbtreeview.bindNodeImageURLDataProvider('media:///printer.gif');


but the Icons on the tree are now changed... Where am I going wrong?

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby ROCLASI » Mon Oct 18, 2004 11:06 am

bindNodeImageURLDataProvider() needs a columnname of your table that you are using for your tree.
This can be a related field as well.
The URL needs to be in that field.
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

Postby ROCLASI » Mon Oct 18, 2004 11:14 am

bindNodeImageURLDataProvider() needs a columnname of your table that you are using for your tree.
This can be a related field as well.
The URL needs to be in that field.
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

Postby pbakker » Mon Oct 18, 2004 11:15 am

From what description Jan gave us, it looks to me that it has to be a URL and not a column. The other method seems to has to be used when you want tyo take the Icon from a column in a table.

As in other places (for example in HTML area's) the 'media:///printer.gif' get's the image from the media library, whereas if you would do the example Jan gave us (http://www.cnn.com/images/xxxx.gif ) would get an Image from a website.

So, I think the question still stand why it doesn't work. Am I attaching the code in the right method?

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Mon Oct 18, 2004 11:20 am

YOu are passing a media url, that NOT correct, you have to pass a column dataprovider name!
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby ROCLASI » Mon Oct 18, 2004 11:29 am

Hmm...2 posts..not sure what happend. Sorry about that.

Jan, any idea on the shifted icon issue?
Also is it possible to expand/collapse certain nodes through code?
If not consider this a feature request. :D
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

Postby pbakker » Mon Oct 18, 2004 11:41 am

OK, I've stored the URL in a column and it works now, tnx for the explanation.

I did it by adding a column to the book_nodes table, called "url".

Then I put in some of the url fileds the following test: "media:\\\printer.gif",
expecting to get the printer icon on the records where I added the text to the url column, when i also added the following code to the refreshTreeView method:
Code: Select all
elements.dbtreeview.bindNodeImageURLDataProvider('url');


At first I thought it worked fine, but when opening, closing nodes on the tree, I saw the Icons shifting place.

I guess this is somewhat related to what Roclasi sees.

Can we prevent this, or can the logic be altered so the set icons stick?

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Next

Return to Sharing Central

Who is online

Users browsing this forum: No registered users and 12 guests

cron