CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Move to Next Record in List using a 'Next' Button

Print topic Send  topic

Author Message
DaveM

Posts: 11
Posted: 05/23/2008, 7:03 AM

My Problem is, when the details of a record are displayed in a form, i need a 'Next / Previous' button on the form to select the next or previous record from the list screen that i have just selected from.

How my application is used
I select a record from a list screen of all available records that i have permission to see, this then opens up into a display form / screen, from here i would like to select the next record without having to close the form and go back to the list screen.
Also, because certain people who use the form will have different permissions, thier list may show a different set of records, thus relying on the record ID to increment or Decrement by 1 is not possible.
E.G My first record may be 11 and the next one in my list could be 15

Hopefully someone out there is able to help.
Many thanks
Dave

View profile  Send private message
wkempees


Posts: 1679
Posted: 05/23/2008, 9:00 AM

http://examples.codecharge.com/ExamplePack/NavRecordGrid/NavRecordGrid.php

Through Help file [F1] see Examples and Techniques->Example pack

Walter
HTH
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
DaveM

Posts: 11
Posted: 06/04/2008, 4:54 AM

Thanks for your reply,
I've done it using the editable grid like you said but when i select a row from the list screen the editable grid opens with the first row in the list screen not the row that i selected, is there any way i can select a row to open and when it does, move forward or backwards from that point?


Many Thanks
Dave
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/04/2008, 3:32 PM

The navGrid is not positioning on the tables identifying ID as a normal recordform would.
It is using pagenumber as a positioner, pages being only 1 row, you would have to know on which pagenumber your wanted record is and feed the pagenumber on the URL.

You/I will see if you/i can find a quick clever way to find out on which pagenumber a requested ID is.

Walter

_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.

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.