Re: FormBuilder custom select

From: Date: Mon, 19 Sep 2005 08:30:44 +0000
Subject: Re: FormBuilder custom select
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21041@lists.php.net to get a copy of this message
Markus Wolff, 10:20, lunedì 19 settembre 2005 ha scritto: > Alessandro Pasotti schrieb: > > - add some code in DO preGenerateForm(): > > > > $_el = &HTML_QuickForm::createElement('sigselect', $k, $k, $options, > > array('onclick'=>'"window.open(\'' . $_href > > .'\')"')); > > $this->fb_preDefElements[$k] = &$_el ; > > > > Now the problem: how to populate the options in the select? Normally > > FormBuilder does it automatically for you taking care of links, but that > > don't seem to work with preDefElements. > > > > Is there a way to use FormBuilder routines also with preDefElements? > > Hi Alessandro, > > there is, at least when it comes to get the entries for a selectbox. > From the inline docs: > > <cite> > DB_DataObject_FormBuilder::getSelectOptions() Thank you, this is exactly what I wanted. I had already tried this function but probably missed something in the first parameter. Now it works. -- Alessandro Pasotti ICQ# 245871392 Linux User #167502

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