CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Resolve a variable in the form title ... HOW ?

Print topic Send  topic

Author Message
Robert
Posted: 01/31/2002, 4:42 PM

I'm new to CC so please pardon the simple question. I've RTFM and can't find the answer.

I am passing a userID to a form. In the form title I wish to resolve the users name from the userID. So instead of the form title saying "Cancer Treatments" it would say "Cancer Treatments for John Smith"

Any thoughts on how to accomplish this ?

Thank you !

-Robert
Nicole
Posted: 02/01/2002, 12:45 AM

Robert,
- for template pattern
in form caption enter: Cancer Treatments {name}
in Open event use code like:
PHP
if (get_param("userID") != "")
$tpl->set_var("name", " for ". get_param("userID"));
ASP
if GetParam("userID") <> "" then
SetVar "name", " for " & GetParam("userID")
end if

- for templateless patter
in form caption enter
PHP
Cancer Treatments <?=$name ?>
ASP
Cancer Treatments <%=name %>
in Open event use code like:
PHP
if (get_param("userID") != "")
$name = get_param("userID");
ASP
if GetParam("userID") <> "" then
name = GetParam("userID")
end if
Robert
Posted: 02/01/2002, 10:03 AM

Nicole;

Thank you for the info on using Form events and the distinction between templates and non-templates.


   


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

MS Access to Web

Convert MS Access to Web.
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.