CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS event question on PHP

Print topic Send  topic

Author Message
Enrico
Posted: 06/07/2002, 2:55 PM

I have two images, one is in a large format (image_test.jpg) and one is a thumbnail (tmb_image.jpg).
In my table I have a field named FIELD_NAME_FOTO where is stored "image_test.jpg".
When I show FIELD_NAME_FOTO on a grid I need to show not "image_test.jpg" but "tmb_image.jpg" ("tmb_" . FILE_NAME_FOTO).
Some body can help me?
Thanks

Ron Borkent
Posted: 06/08/2002, 1:13 AM

I'll give it a shot :-)

In beforeshow event:

global $formname;
$thumb="tmb_";
$formname->fieldname->setvalue($thumb .$formname->fieldname->Value);

Should do the trick.

I generaly put everything in a variable but you could also do it like this:

global $formname;
$formname->fieldname->setvalue("tmb_" .$formname->fieldname->Value);

Hope this helps.

Ron

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.