Re: Customising DB_DataObjects Formbuilder

From: Date: Thu, 28 Apr 2005 10:35:21 +0000
Subject: Re: Customising DB_DataObjects Formbuilder
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18989@lists.php.net to get a copy of this message
On 4/28/05, pear@electroteque.org <pear@electroteque.org> wrote: > Hi there, I am looking at using formbuilder for starters I am wanting to > build a frontend editor, to manage data in all the list menus of a form. > This table is in seperate tables. They all have foreign key relations > however formbuilder is treating them as text and not displaying a > pulldown , any ideas ? You need to set $fb_linkDisplayFields = array('domain'); // when in a select, show domain name in the 'destination' DataObject and $fb_linkDisplayFields = array('client', 'domain'); // client and domain are ID's from elsewhere in the DO definition where you link from. It took me a while to figure that out last week, but when I did, I can write a basic form to database in a matter of minutes, based on what I've done thus far - mostly by just changing the names in the DO::factory calls Alister

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