DataObject & Formbuilder self ref. tables

From: Date: Thu, 29 Apr 2004 10:42:31 +0000
Subject: DataObject & Formbuilder self ref. tables
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12217@lists.php.net to get a copy of this message
Hi all, I'm building forms using FormBuilder based on the DataObject config files, such as database.links.ini A problem I've run in to is when a field in a table references another row in the same table. My links file looks like this:- [shopcategory] shopcategory_id = shopcategory:id shopimage_id = shopimage:id So a category can be nested within a parent category. My problem is the auto-generated form - the 'shopcategory_id' field doesn't get auto-generated as a select list containing all the existing categories in the table. Have I mixed something up and overlooked something? Do I need to customize this auto-form to achieve what I want? The 'shopimage_id' field in the form appears correctly as a select menu. Regards, -- Mike C ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

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