Re: DB_DO_FormBuilder to create data range search

From: Date: Mon, 05 Jun 2006 15:56:58 +0000
Subject: Re: DB_DO_FormBuilder to create data range search
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24254@lists.php.net to get a copy of this message
On 6/5/06, Michel D'HOOGE <m.dhooge@enertecgroup.com> wrote:
Hello, I started to implement some code to display a DB table with Datagrid and I used QuickForm to let the user define data range for its search. For instance, this allows him to define ranges for integer and date fields. Then I found the wonderful FormBuilder package and started to play with it. Unfortunately it can't create off the shelf such range inputs. So I wonder if there is already something available. And if not, what is the best way to insert my extended QF elements. I know there is the FB elementTypeMap, but I can't find where it links to the rest of FB.
elementTypeMap is used in the QuickForm driver. See DB/DataObject/FormBuilder/Quickform.php I'm not sure that this is the "right" place to put it, though, since this is a special case. FormBuilder's forms are generally meant to edit or add a record, not search for a record. You'd have to manualy process the values returned from the post anyway. Well, I suppose you could use elementTypeMap for creating the elements, then just not process with FB. -- Justin Patrin

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