Re: Re: FormBuilder and QuickForm_Controller

From: Date: Tue, 08 Mar 2005 15:09:37 +0000
Subject: Re: Re: FormBuilder and QuickForm_Controller
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17923@lists.php.net to get a copy of this message
> > Person : links to Institution > Institution : links to Country > Country : links to Continent > Continent > > When editing "Person" and the select box does not have the appropriate > "Institution" entry, I would go to an intermediate form and add the > institution. If the institution form does not have the approprate country > selection I then go to the intermediate country form. And so on... > > I can see that it can be done in the preProcessForm() stage, by checking the > relevent fields and optionally redirecting to another page which would allow > one to add the new record. However using the QFC seemed cleaner as it looked > like it could act as a wrapper for the forms and control the flow between > them. > > I've now hit my head against the wall, mixing QFC and FormBuilder seems to be > too hard. The fact that few people seem to be doing it indicates to me that > there is a better way to do this. > > Do you have any suggestions? I'm about to evaluate the "redirect" option. > You are not talking about the FormBuilder option "linkNewValue=true", are you? It works at least for a 2 level hierarchy but it shows a "nested" form in the same page. But you probably want to see the second form in another page, is it? Cheers, alberto

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