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

 what var to modify in BeforeExecuteSelect 2

Print topic Send  topic

Author Message
rgranger
Posted: 08/08/2002, 6:55 PM

to change the sql statement used for the default maintenanct form?
Also, am I just blind, I have looked in the user's guide and tutorial and don't see much documentation on events and what session vars are avalbie other than userid and group?
thanks
Nicole
Posted: 08/09/2002, 5:40 AM

Hello,
you can access and modify the parts of the sql statement (SQL, Where, Order) in the Before Build Select Event. Here is sample code:
ASP
EventCaller.SQL = "custom sql"
EventCaller.Where = "custom where"
EventCaller.Order = "custom order by"

PHP
global $form_name;
$form_name->ds->SQL = "custom sql";
$form_name->ds->Where = "custom where";
$form_name->ds->Order = "custom order by";

To get the values of session variables UserID and GroupID use CCS functions
CCgetUserID() and CCGetGroupID(). All CCS functions are listed in the common file.
rgranger
Posted: 08/09/2002, 2:22 PM

reply to your post :-) Thanks that makes sense!

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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