Re: Structures DataGrid with Linked Tables
| From: | Olivier Guilyardi | Date: | Tue, 08 Nov 2005 18:54:07 +0000 |
| Subject: | Re: Structures DataGrid with Linked Tables | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21838@lists.php.net to get a copy of this message | ||
Prue wrote:
> Hello
>
> I am using SDG and all is working fine however, rather than displaying eg
> "ground_id" in the "club" table which is linked in the links.ini file to
> the
> "ground" table, I want the grid to display the "name" field from the
> "ground" table.
>
> Is what I'm trying to do possible? If so, please advise the syntax.
You could try something like :
$club->selectAs();
$club->joinAdd($ground);
$club->selectAs($ground, 'ground_%s');
$datagrid->bind($club);
--
og