CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Some info on CC variables

Print topic Send  topic

Author Message
Alexey Alexapolsky
Posted: 05/23/2001, 7:15 AM

Some info on CC variables.

If something doesn't work see what case this variable has in your scripting
language.
There are some differences.

Variables :

Already created an initailized connection to your DB :
cn - variable in ASP
$db - db_sql class instance object in PHP
conn - Connection object in JSP


sFileName - self explanatory e.g. "AdvSearch.asp"
sTemplateFileName - same, e.g "AdvSearch.html"


sSQL - contains sql statement to be executed
sWhere - contains "where" clause appended to sSQL
sOrder - contains "order" clause appended to sSQL
sDirection - asc or desc
The ones above are mostly used in Open event.


"fld" is a standard prefix for cc field variable. For instance
if field name is price then corresponding cc variable is named fldprice.
You can manipulate them through events. Used in alsmost all events.

Template variables : variable FormAction contains taget script address ,
may be changed by call like
SetVar "FormAction","your_script.asp"
in "Before show" event.

You can replace whole parts of your html tepmplates by calls like SetVar
"Header","<h1>Nwer html code for header</h1>"
or $tpl->set_var("Header","<h1>Nwer html code for header</h1>");
provided that Header has been loaded as template , or header is a part of
html file
surrounded by tags like <!BeginHeader> some html <!--EndHeader-->

--
Regards,
Alexey
CodeCharge Support



Frank Rocco <farocco@hotmail.com> wrote in message
news:9eg6sa$2q1$1@mail.tankhill.com...
> Hello,
>
> Where can I find a reference to the variables that Codecharge generates
> along with a syntax for working with them?
>
> If I want to grab a variable in a Codecharge form, what is the syntax?
>
> Thanks
> Frank
>
>




   


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.