PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Putting a conditional image in a table column
Putting a conditional image in a table column
Iniciado por Kevin Erskine, 23,abr. 2009 09:40 - 3 respuestas
Publicado el 23,abril 2009 - 09:40
WebDev v12

I have defined a column in a table based on a file as an IMAGE column.

In the code embed for the column I have

If condition = true then
myself..value = "Image.gif"
else
myself..value = ""
END

But thisis not working -- I tried ..image but it said invalid

How do I assign an image at runtime to an image column in a table?

Thanks.



--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)
Publicado el 24,abril 2009 - 02:45
Hi Kevin,
Maybe this post can help you:

http://forum.pcsoft.fr/thread.awp…

Christian

Kevin Erskine a écrit dans le message de news <49efb567@news.pcsoft.fr> :
WebDev v12

I have defined a column in a table based on a file as an IMAGE column.

In the code embed for the column I have

If condition = true then
myself..value = "Image.gif"
else
myself..value = ""
END

But thisis not working -- I tried ..image but it said invalid

How do I assign an image at runtime to an image column in a table?

Thanks.



--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)
Publicado el 24,abril 2009 - 09:05
Thanks - I have the following code, but no luck

IF Person.CustomerID=0 THEN
COL_Customer = "Btn_Delete.gif"
ELSE
COL_Customer = "bullet.gif"
END

I do not get any image - just a red X -- the images are under _WEB

I tried under "Initialization" of COL_Customer -- any ideas -- ther article
was not too clear of where to code

"Christian Potvin" <cpotvin@beaulieucanada.ca> wrote in message
news:264b04c133351e0a35f0d05ad4ed91e5@news.pcsoft...

Hi Kevin,
Maybe this post can help you:

http://forum.pcsoft.fr/thread.awp…

Christian

Kevin Erskine a écrit dans le message de news <49efb567@news.pcsoft.fr> :
WebDev v12

I have defined a column in a table based on a file as an IMAGE column.

In the code embed for the column I have

If condition = true then
myself..value = "Image.gif"
else
myself..value = ""
END

But thisis not working -- I tried ..image but it said invalid

How do I assign an image at runtime to an image column in a table?

Thanks.



--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)


--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)
Publicado el 25,abril 2009 - 14:38
Hi Kevin. When i want change the imagen in runtime i use:


1) I create hidden images in the page by each image option. You can assign
the image by path using the fwebdir() function like path for _WEB directory
but then you must put the images in _WEB directory.

2) In Table code "Row Display" i assign the correct image to table column

Col_Image = ImageX


Rubén Sánchez Peña


"Kevin Erskine" <KErskine@Software-By-Ragazzi.com> escribió en el mensaje de
noticias news:49f11b69$1@news.pcsoft.fr...

Thanks - I have the following code, but no luck

IF Person.CustomerID=0 THEN
COL_Customer = "Btn_Delete.gif"
ELSE
COL_Customer = "bullet.gif"
END

I do not get any image - just a red X -- the images are under _WEB

I tried under "Initialization" of COL_Customer -- any ideas -- ther
article
was not too clear of where to code

"Christian Potvin" <cpotvin@beaulieucanada.ca> wrote in message
news:264b04c133351e0a35f0d05ad4ed91e5@news.pcsoft...

Hi Kevin,
Maybe this post can help you:

http://forum.pcsoft.fr/thread.awp…

Christian

Kevin Erskine a écrit dans le message de news <49efb567@news.pcsoft.fr> :
WebDev v12

I have defined a column in a table based on a file as an IMAGE column.

In the code embed for the column I have

If condition = true then
myself..value = "Image.gif"
else
myself..value = ""
END

But thisis not working -- I tried ..image but it said invalid

How do I assign an image at runtime to an image column in a table?

Thanks.



--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)


--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)