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

 converting fields to links in CCS

Print topic Send  topic

Author Message
dfl3
Posted: 08/11/2002, 5:41 PM


I have used this type of function (http://www.gotocode.com/art.asp?art_id=39)in CC 2.0 but can't seem to figure out what I need. My field contains info like
http://www.amazon.com/exec/obidos/ASIN/B00005K9R7/ and I want to make it clickable by using a graphic that replaces this text on the form.
I was trying the Before Show function and using gridname->fieldname->Setvalue($ValuetoSet) and not getting anywhere. Any suggestions

Thanks

Dan
Nicole
Posted: 08/13/2002, 2:17 AM

Hello,
As I understand you want to display image as clickable link that points to address as proposed one. Well, you can add the Label type field that stores the address to the form and set its content type to HTML. Then build Before Show event for the field. Here is sample PHP code for CCS:

global $form_name;
$form_name->field_name->SetValue("<a href = \"".$form_name->field_name->Value."\"><img src = \"image_name.jpg\"></a>");

dfl3
Posted: 08/13/2002, 7:03 AM

Thanks ... this got me in CC 2.0 too. Matbe I'll remember the HTML thing next time.

Dan

   


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.