Re: Formbuilder + DB_DataObjects + Structures_DataGrid

From: Date: Tue, 26 Jul 2005 00:01:18 +0000
Subject: Re: Formbuilder + DB_DataObjects + Structures_DataGrid
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20131@lists.php.net to get a copy of this message
Hi Justin, Thanks for the response, I was thinking of adding my changes to Structures/DataGrid/DataSource/DataObject.php but was a bit worried as I was not sure what to change. I've taken the plunge and made my changes, I'm not a php expert so I'm sure it could be done better but is seems to work as expected. I've posted my code changes as a feature request. Regards, Etienne. "Justin Patrin" <papercrane@gmail.com> wrote in message news:432beae05072509384c552787@mail.gmail.com... On 7/25/05, Etienne van Tonder <evt@infoware.com.au> wrote: Well.... If you're using a *normal* enum type in a database (like Mysql's) then the DB should be returning the "display" values instead of #'s. If you're implementing this yourself with an int field and fb_enumOptions then I would suggest instead using a foreign key (link) and a lookup table. This way the formbuilder_integration option can pull the links. The formbuilder_integration code in Structures/DataGrid/DataSource/DataObject.php could also be hacked to support enums as well (if you do this, a patch in a feature request would eb nice). You could also use an SDG column formatter to look up the values. -- Justin Patrin

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