Re: DB_DataOBjects SelectAdd()

From: Date: Fri, 09 Sep 2005 16:24:13 +0000
Subject: Re: DB_DataOBjects SelectAdd()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20884@lists.php.net to get a copy of this message
On 9/8/05, Barry Steele <barry@hpfm.com.au> wrote: > Hi, > I've been using DB_DataObjects now for a fait while (>12 mths). > > Recently we decided to use Structure_Datagrid to exchange some info with a > thrid party. > > To do this I use the code below > > <code> > > In the above the empty columns are in the base table - beach_details. > > My issue is that when I bind to the DataGrid, all of the columns are > listed, including all the empty columns. > > So, my question is can I setup the DBO so that I only get back the data in > the selectAdd() clause? No, I don't think so. You should use addColumn to specify the columns you want. > > I'm also interested in knowing how to get the XML output from > Structure_DataGrid not to render empty tags as this is bad xml. No, it's not. Empty tags are perfectly valid XML. ` -- Justin Patrin

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