FAQ

On 23 Aug 2011, at 11:41, Octavian Rasnita wrote:
The problem is that I would like to use the columns first_name + a space + the column last_name as the label for the select options, and not only the username column.
In the case where I do this, I have the DBIC result class have an
additional method in it:-
sub name { my $self = shift;
return join( ' ', $self->forename || '', $self->surname || '' ); }

and then use name as the label column

Nigel.

--
[ Nigel Metheringham ------------------------------ nigel@dotdot.it ]
[ Ellipsis Intangible Technologies ]

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
grouphtml-formfu @
categoriesperl, catalyst
postedAug 23, '11 at 10:41a
activeAug 23, '11 at 12:35p
posts3
users2
websitemetacpan.org...

People

Translate

site design / logo © 2021 Grokbase