Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Picture in DataWindow

1 view
Skip to first unread message

Pål Magnus Nybų

unread,
Nov 22, 2000, 3:00:00 AM11/22/00
to
I have a table where one of the columns are the name of a image file.
Is there an easy way to display this picture in a DataWindow ?

example:

You have a table with two columns
one with car-brand, and the other the car-picture.
Like this:

Car Brand : Volvo
Car picture: volvo.gif

But instead of volvo.gif (the registered filename in the table),
I would like to show the picture.

Hope somone could help me...

Bruce Armstrong [TeamSybase]

unread,
Nov 22, 2000, 3:00:00 AM11/22/00
to
There is an attribute for the edit style that tells PB to use the data in
the column as the name of an image file. With PB6 it has to be a bitmap,
but PB7 and above support GIF and JPG. Note, however, that the image file
has to be accessible to the client, so you will either need to deploy that
file to the client or make it available on a file server and include the
full reference to it in the column.

On Wed, 22 Nov 2000 13:54:57 +0100,
in powersoft.public.powerbuilder.web-pb

Bruce Armstrong [TeamSybase]
mailto:Bruce.A...@teamsybase.com

Preach the gospel at all times. If necessary, use words. [Francis of Assisi]
http://www.kidbrothers.org | http://www.fccwc.org
http://www.harvest.org/knowgod/index.htm | http://www.needhim.org
http://www.jesusfilm.org/view/realvideo/rv/languages/english.ram

-----------== Posted via the PFCGuide Web Newsreader ==----------
http://www.pfcguide.com/_newsgroups/group_list.asp

Bruce Armstrong [TeamSybase]

unread,
Nov 22, 2000, 3:00:00 AM11/22/00
to
There is a display as picture attribute for the edit style. With PB6,
it will need to be a bitmap, but PB7 and later support GIF and JPG. One
thing though, you'll need to make sure that the image file is available
to the client. That means deploying it there, or putting it on a common
file server and including the full path to get to it in the column.

Pål Magnus Nybų

unread,
Nov 23, 2000, 3:00:00 AM11/23/00
to
Thanks!
This worked very good.

There is only one problem, or perhaps it is a limitation?

Here are my case:

I have a Company table, with a picture column.
When I created a DataWindow with select statement only from this table, it
worked very good.

Then I tried to make a DataWindow with a combination of tables, but then it
didn't show the picture, it
only displays the column value (example : pics/pic1.gif)

I have deployed the picture folder to the webserver.

So I was wondering if there is a limitation in the datawindow, when I
display data from different tables in one datawindow ?

Hope you could help my some more..

Bruce Armstrong [TeamSybase] <NOCANSPAM_br...@teamsybase.com>
wrote in message news:0tX676L...@forums.sybase.com...

Bruce Armstrong [TeamSybase]

unread,
Nov 27, 2000, 3:00:00 AM11/27/00
to
It shouldn't care how many tables are involved in the query. The issue is
most likely elsewhere.

On Thu, 23 Nov 2000 09:00:24 +0100,

0 new messages