Re: db_dataobject_formbuilder and quickform hierselect

From: Date: Tue, 04 Jan 2005 18:31:34 +0000
Subject: Re: db_dataobject_formbuilder and quickform hierselect
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16595@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Markus Wolff wrote: | Arne Gellhaus wrote: | |> i am trying to build a form with formbuilder and i would like to |> replace two fields by a hierselect quickform element. Has |> somebody done this already, or is it even possible with |> formbuilder out of the box? | | this is not possible out of the box. You need to predefine this | element using the fb_preDefElements array, like this (in your | DataObject): The problem is, that the qf hierselect element is a group, so i cannot replace the two elements with the corresponding hierselects, but I have to 1. create a virtual field (overwrite dataobject::table()) 2. set fb_fieldsToRender 3. create manually a hierselect element 4. write all the database code to get the data in my hierselect group 5. overwrite dataobject::update and dataobject::insert to not add the virtual field but put the values from hierselect in the right fields. This defeats the task of formbuilder to allow a rapid development, because it is easier to write the quickform and database code by hand :-). I think my hierselect case is a common case in database application and i would like to see support for it in formbuilder. Does this fit in your "grand scheme of things" and is it possible to implement without interfering with the design too much? Thanks, ~ Arne -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB2uEGjWyg//hT800RAjsPAJ9BlpaFn9dZd/fPnI57wr5XFwZotQCgj8CW llW9F3twAK7SthQqNw249Sg= =1c29 -----END PGP SIGNATURE-----

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