Re: Formbuilder and big crosslinks
| From: | Justin Patrin | Date: | Tue, 21 Dec 2004 23:00:30 +0000 |
| Subject: | Re: Formbuilder and big crosslinks | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16391@lists.php.net to get a copy of this message | ||
On Tue, 21 Dec 2004 21:02:59 +0100, Rodrigo Alvarez Fernández
<papipo@gmail.com> wrote:
> On Tue, 21 Dec 2004 11:54:58 -0800, Justin Patrin <papercrane@gmail.com> wrote:
> > On Tue, 21 Dec 2004 19:12:15 +0100, Rodrigo Alvarez Fernández
> > <papipo@gmail.com> wrote:
> > > On Tue, 21 Dec 2004 10:00:14 -0800, Justin Patrin <papercrane@gmail.com> wrote:
> > > > On Tue, 21 Dec 2004 16:39:01 +0100, Rodrigo Alvarez Fernández
> > > > <papipo@gmail.com> wrote:
> > > > > Hi PEARs,
> > > > >
> > > > > I'm trying FromBuilder with a crosslink that points to a table with
> > > > > more than 900 rows.
> > > >
> > > > Well, the crosslink pulls all the rows...
> > > >
> > > > >
> > > > > preGenerateForm(&$fb) {
> > > > > $idCustomer = HTML_QuickForm::createElement('hidden',
> > > > > 'idCustomer');
> > > > > $this->preDefElements['idCustomer'] = $idCustomer;
> > > > > }
> > > > >
> > > > > I thought than using that, values for select won't be loaded, but it
> > > > > seems that I was wrong, since Page gives 30 seconds timeout!
> > > >
> > > > What did you expect this to do? I don't understand. Crosslinks are
> > > > checkboxes (well, they can be a multi-select, too). What exactly are
> > > > you trying to do here?
> > > >
> > > Ok, I said crosslinks when I wanted to say simple limks.
> > > Example config:
> > >
> > > [Work]
> > > idCustomer = Customer:idCustomer
> > >
> > > I want a hidden and pre-defined value for idCustomer, not the automatic select.
> >
> > I see. Well, I just realized your mistake. You're using
> > $this->preDefElements. You should be using $this->fb_preDefElements.
> >
> > See:
> > http://opensource.21st.de/tiki-index.php?page=Configuring+Formbuilder
>
> WTF, I have been using Formbuilder for two months... but I still
> forget fb_ prefix sometimes xDD.
Well, it used to not require that (you can blame me for putting that
in...well, at leats for implementing it ;-)).
>
> Thank you, Justin!
>
np
--
Justin Patrin