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 -> CodeCharge.Discussion

 previous next

Print topic Send  topic

Author Message
Steven Dowd
Posted: 06/06/2001, 7:12 AM

how do i make the scroll < previous 1 next > link/buttons that
codecharge adds to the php code its
producing for me into :-

< Previous (15) 1 2 3 4 5 6 7 8 9 Next (15) >

I have 20,000 items to search thru and sometimes multiple pages of (15)
results , its a little annoying to have
just < previous 1 next > but no mater what i seem to add into codecharge
i cannot figure where to make
it do what i want?

Steven



Walker P.
Posted: 06/07/2001, 7:46 PM

Steven,
let me begin by saying that in future releases of CodeCharge you will be
able to include the said functionality without having to edit the generated
code.

At the moment, we have an ASP example which shows how to edit the generated
code so that you have [First] [Previous] [Next] [Last] in the navigation
bar. If you would like to receive this example, please submit your email
address tosupport@codecharge.com and we will send it to you.

Regards,

Walker P.
CodeCharge Support.

Walker P.
Posted: 06/08/2001, 11:10 AM

This message is for anyone else who might be interested in this subject.
Below is a description of the solution mentioned above. Please be warned
that this solution involves changing the generated html file as well as
adding a global function so it should not be considered simple but rather as
a last resort work around.

1. The first step involves adding a gloal function which executes the SQL
for the grid form and gets the number of records that will need to be
displayed. This number is needed so as to compute the number of pages that
will be in the series depending on the number of pages to be displayed per
page.

2. The next step involves adding code to an 'Open' event so as to compute
the number of pages that will be in the series. This number is stored in a
variable which will be referenced in step 3. After this step, the page is
generated.

3. The final step involves editing the generated html file to add links for
[First] and [Last] using the variable created in step 3. This is the messy
part since you have to be careful not to inadvertently change the wrong code
and you also have to be careful not to overwrite the file once it is edited.

As you can see, this work around is pretty involving and prone to error and
should be used only if it is imperative that you add the additional links.

Walker P.
CodeCharge Support


   


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.