CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 How to display Next and Previous Record Buttons

Print topic Send  topic

Author Message
Kumar
Posted: 02/07/2002, 5:30 PM

I would like to add command buttons for going to the Next and Previous Record in a Record Form (as well as First and Last). How can this be done ? Any help would be appreciated

Thanks

Andrew B
Posted: 02/07/2002, 6:58 PM

Try doing something like this :

change the name of the next button to : {MyNextButton}

in the form's BeforeShow event, place code similar to this
SetVar "MyNextButton", "<img src=""images/next.gif"" border=""0"">"

Setting the button text to that makes it replaceable by the standard CC method (which happens automatically), since the next/previous label is just inserted direclty into the html. Remember, when you use "SetVar" that the variable name is case sensitive.

I don't know if this will work with the no-templates version, and the code is also ASP. PHP should be similar, and a quick look at the code CC generates will tell you how to use SetVar
MadMax
Posted: 08/30/2003, 3:17 PM

Tks. will do

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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