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

 How to change a field caption? (PHP/Templates)

Print topic Send  topic

Author Message
Brent
Posted: 02/12/2002, 2:26 PM

Ok, this one is eluding me. How can I change the caption of a record field?
This should be easy, right? I'm using PHP with Templates. TIA
Sarah
Posted: 02/12/2002, 5:33 PM

You just type in the caption you would like in the box under caption in the form part of the page, under the section where you add fields.
Brent
Posted: 02/12/2002, 8:45 PM

Sarah,
I meant using code, how do I change the field caption. :)
Brent
Nicole
Posted: 02/13/2002, 5:02 AM

Brent,
while you're using PHP+Templates it is easy. Put the field caption in curl braces, e.g. {priority_field}
Then in BeforeShow event assing real value to it. E.g.:
if (any_condition)
$tpl->set_var("priority_field", "High priority");
else
$tpl->set_var("priority_field", "Low priority");

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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