[jifty-devel] refers_to and select field
IN SUK JOUNG
i.joung at gmail.com
Sun Mar 25 00:07:19 EDT 2007
Hi,
Some of my model have 'refers_to' columns. I wanted to add some pairs of
'display' and 'value' to 'valid_values' of the column in addition to the
'Collection' class. So, I overrode arguments sub.
sub arguments {
my $self = shift;
my $args = $self->SUPER::arguments(@_);
unshift @{ $args->{thecolumn}{valid_values} }, { display => 'display
name', value => 'value' };
return $args;
}
This works but in the select field, I see many redundant 'display name'. I
guess this is not the right approach for it. How do I add extra values in
the field?
--
Best,
In-Suk Joung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070324/ed35aaf2/attachment.htm
More information about the jifty-devel
mailing list