Re: [QF & FB] Hierselect & linksNewValue

From: Date: Sun, 13 Nov 2005 03:38:30 +0000
Subject: Re: [QF & FB] Hierselect & linksNewValue
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21899@lists.php.net to get a copy of this message
On 11/6/05, jorge (registros) <jorge.ghm@gmail.com> wrote: > (sorry I posted this before, but as a reply to other message) > > Hi list! > > I tried hierselect code found in > http://opensource.21st.de/25.html#A11. > It's working ok but omites var $linksNewValue. > > <code> > var $fb_linkNewValue=true; > var $fb_linkNewValueText = '--Add one--'; > var $fb_linkElementTypes = array('id_countryid_city'=>'select') > --> I > tried id_countryid_city[0] and 'hierselect' instead 'select' but > didn't > work > [.....] > > function preGenerateForm(&$fb){ > $hierselect =& HTML_QuickForm::createElement('hierselect', > $fb->getFieldName($virtualfield), $desc,null,'<br/>'); > [......] > $this->fb_preDefElements[$virtualfield] = $hierselect; [....] > } > > </code> > > Does anybody know how to get it working? thanks in advance > linkNewValue is a feature built into a special QF element which is part of FormBuilder. A hierselect is a completely different kind of element. Likely if you want linkNewValue *and* a hierselect you'd have to hack or extend the hierselect element and add in the linkNewValue code. Or possibly make a hierselect element which uses the linkNewValue element to create its last select element... -- Justin Patrin

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