Editform with Forward/Backward-button

thread: 3 messages  |  last: about 5 years ago  |  started: monday, february 4, 2008, 5:49 am pst


#1  |  mager33 (HB) Germany
Monday, February 4, 2008, 5:49 AM PST

Hello,

I'd like to extend the codegenerated editform with a button to skip to the next/previous/... record, but after reading docs and watching the videos I haven't fugured out hot to do this.

Thanks for your help, Martin

#2  |  mager33 (HB) Germany
Tuesday, February 5, 2008, 3:27 AM PST

Well, I thought about using a datagrid with paginator set to 1 per page, but that does not seem very elegant...

#3  |  VexedPanda (Calgary, AB) Canada
Monday, February 11, 2008, 2:15 PM PST

A DataRepeater would probably be a better way to do that.
That way you can spit out the full edit page GUI, and still have the paging.

The best way to do this is probably to just use the normal edit pages, and add prev/next buttons to it.

These buttons would then find the ID of the next/previous record, and redirect to the edit page passing that in the URL.

Finding the next/prev ID is the hard part, and why a DataRepeater may be nicer, though then you lose the ability to jump to specific IDs.



Copyright © 2005 - 2013, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.