[turba] Attributes & Drop-Down Menu

Jan Schneider jan at horde.org
Sun Jul 3 03:49:50 PDT 2005


Zitat von Kevin Druff <kevin at druffs.com>:

> I am attempting to do a bit of customization on Turba. I want my end users
> to be able to select a particular locality from a list of choices. When
> fully complete, the list will be quite large, however, I cannot get even one
> or two options to appear. I would like to store in my SQL tables the number
> that precedes the Locality name. Each locality has a unique numerical
> identifier in another table that we will use in more sophisticated queries.
> The following is the entry in config/attributes.php:
>
>
>
> $attributes['county'] = array(
>
>    'label' => _("County"),
>
>    'type' => 'enum',
>
>    'enum' => array('0' => _("Accomack"),
>
>                    '1' => _("Albemarle"),
>
>                    '2' => _("Alleghany"))
>
> );

Try

'params' => array(array(0 => 'Accomack', ...))

instead.

Jan.

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



More information about the turba mailing list