CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 display TOTAL grid based on pagenumber

Print topic Send  topic

Author Message
ryan

Posts: 41
Posted: 08/08/2006, 12:25 AM

I want a grid total that appears on the FINAL page but I cannot properly tweak the code.

for example this total
- - - - - - - - - - - - - - - - - - - - - -
Total--------300
- - - - - - - - - - - - - - - - - - - - - -

will only appear on the final page , I do not want something that sums the values then puts a running total on every page but rather displays the TOTAL on the final page

If I have 50 records per page then page 1 of 4 I want the total to appear on page 4

If I have 20 records per page then page 1 of 12 I want the total to appear on page 12

If I have n records per page then page 1 of x I want the total to appear on page x

All I can think of are the ff:

A = MyGridName.DataSource.AbsolutePage
B = CCGetParam("TheURLforPageNumber","-1")

IF (A<>B) THEN
TotalGrid.Visible=false
ELSE
TotalGrid.Visible=true
END IF

But I cannot find any luck hehehehelp please :)
_________________
(\__/)
(='.'=)
(")_(")
View profile  Send private message

Add new topic Subscribe to topic   


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.