[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turba
Subject:    Re: [turba] Dynamic SQL lookup enum attributes
From:       Jan Schneider <jan () horde ! org>
Date:       2008-02-19 9:30:53
Message-ID: 20080219103053.197926euroyxurwg () neo ! wg ! de
[Download RAW message or body]

Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Peter Paul Elfferich <pp@dia.uva.nl>:
>
>> I'm currently experimenting with accessing our mailing database with Turba.
>> This is a relational database using foreign keys to refer to values from
>> different tables. By using left joins in the table definition in
>> sources.phpthe proper values are displayed in Turba, but I'd also like
>> to be able to edit these values.
>>
>> Is it possible to define a dynamic enum in attributes.php which looks up
>> keys and values from related tables? I'd like the values to be listed in a
>> pulldown/list and the key to be stored back into the address table when you
>> edit the record in turba.
>
> Sure, just put the database code to read the enum into attributes.php.

There is even the dblookup form field that already does that for you.  
http://wiki.horde.org/Doc/Dev/FormTypes

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

-- 
Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: turba-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic