Re: QuickForm: navigation buttons?

From: Date: Mon, 10 Oct 2005 20:36:31 +0000
Subject: Re: QuickForm: navigation buttons?
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21333@lists.php.net to get a copy of this message
On 10/10/05, Zane <softwarezman@hotmail.com> wrote: > Oh man, you are right. I always get FormBuilder and QuickForm confused. I > really meant to talk about FormBuilder. > > I don't know if that makes any difference at all but I guess i'll try and > see about the basic generating of buttons through regular methods and > nothing too fancy. Sorry about the confusion! My first time on these lists > (although I read them all the time.) Thanks for the help... Well, FormBuilder only works with *one* record at a time, so it has no idea about "next" or "previous" records. This is entirely in the realm of your code. Just add some simple buttons to your form and go to the next/prev record based on the value of the button pressed. > > Zane > > > ----- Original Message ----- > From: "Justin Patrin" <papercrane@gmail.com> > To: "Zane" <softwarezman@hotmail.com> > Cc: <pear-general@lists.php.net> > Sent: Monday, October 10, 2005 2:27 PM > Subject: Re: [PEAR] QuickForm: navigation buttons? > > > On 10/10/05, Zane <softwarezman@hotmail.com> wrote: > > I am trying to create the ability for navigation buttons (or even > > something > > along the lines of Structure_DataGrid capabilities) for a group of > > records, > > say, limited to a specific customers' orders. > > So why not use Structures_DataGrid? It pages data just fine. > > > > > I have been scouring around the internet searching the newsgroups and such > > but haven't had any luck. Does anybody have any code snippets for > > QuickForm > > that show a good way for how to do this? > > This really has nothing to do with QF...the buttons are your own > thing. You can add buttons to QF with 'button' or 'submit'. > > > > > I figure its got to be something along the lines of a query to populate > > the > > DG object and then just output it at the postGenerateForm function? Or am > > I > > just crazy? TIA > > > > postGenerateForm? Are you talking about DB_DO_FormBuilder then? Please > reformulate your question, this is very confusing. > > Try DB_DataObject_FormBuilder_Frontend for data viewing and editing. > > http://pear.reversefold.com/dokuwiki/doku.php?id=pear:db_dataobject_formbuilder_frontend > and > http://pear.reversefold.com/example > > -- > Justin Patrin > -- Justin Patrin

« previous php.pear.general (#21333) next »