Re: DB_DataObject_FormBuilder: linked table fields as select boxes
| From: | Justin Patrin | Date: | Wed, 25 Feb 2004 22:09:36 +0000 |
| Subject: | Re: DB_DataObject_FormBuilder: linked table fields as select boxes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10937@lists.php.net to get a copy of this message | ||
Suat Imam-Oglu wrote:
Hi all, how do I let FormBuilder show linked table fields as select boxes? In the example from CVS, the form elements for Manufacturer_ID and Category_ID on the products-form should be select boxes, but I get simple text input elements. I've not touched the two ini files (formbuilder.ini and formbuilder.links.ini). Should the select boxes not be autogenerated if the .links.ini exist? Am I missing something? Any help appreciated. PEAR-packages: - DB_DataObject-1.5.3 - HTML_QuickForm-3.2.1 - DB_DataObject_FormBuilder CVS-version (FormBuilder.php,v 1.22 2004/02/09) Thanks SuatThe select boxes are only generated for fields which are set up as links in the db.links.ini file. Check the links.ini section of the DB_DataObject docs. http://pear.php.net/manual/en/package.database.db-dataobject.intro-relations.php -- paperCrane <Justin Patrin>