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

 Total Form and problem with where clause

Print topic Send  topic

Author Message
Andy H
Posted: 04/28/2002, 8:51 PM

Using the bookstore example, I have created a form that has a seach form, record grid form and then a total form. My problem is getting the SQL that is used in the total form, to be able to use the $sWhere that is generated out of the search form. It appears that $sWhere is always being initialized, so when I try to use it, it's blank.

What's the trick that I'm missing?

Thanks,

Andy
Nicole
Posted: 04/29/2002, 4:36 AM

Andy,
to make total form display the real number of records found it should has the same WHERE clause as result grid form. If you're using CC just add Input parameters to Total form. In case you're working with CCS input parameters are to be added Data Source window (click on form, go to Properties window/Data tab and click on Data Source field).
Andy H
Posted: 04/29/2002, 5:03 AM

Nicole,

I'm not summing the number of records, but summing a column (hours) and need that total. Would input parameters enable that to work?

Andy

Nicole
Posted: 04/29/2002, 7:06 AM

Andy,
in for Open event declare lets say $total variable and add field value to it in Before Show event. Then you'll be able to display it e.g. in form's footer

   


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.