Re: Datagrid - Adding Customs Fields

From: Date: Tue, 23 May 2006 13:27:14 +0000
Subject: Re: Datagrid - Adding Customs Fields
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24124@lists.php.net to get a copy of this message
Mark Wiesemann wrote:
Toppi wrote:
Is there (another) a way to use "SELECT" statements with datagrid? When using type "DBQuery" Datagrid seems to be a bit buggy.
MDB2 DataSource. ;-) Or the deprecated DB DataSource, which uses result objects from PEAR::DB (not efficient, because all data needs to be fetched). But as I am using DBQuery DataSource myself in some projects, it seems to be a usage or understanding problem.
Indeed DBQuery works fine in my experience, except for some complex "group by", etc.. queries. What bug do you see ? About other ways to use "SELECT" statement : the highest flexibility and optimization can be achieved by writing a custom DataSource driver that acts as an "SQL adaptor". That is actually very easy and documented (see the "A simple driver" section) : http://pear.php.net/manual/en/package.structures.structures-datagrid.custom-datasources.php Greetings -- og

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