On 28/03/2008, Joe Prosser <[EMAIL PROTECTED]> wrote:
> Hi Carl,
> I found it in
> http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Model-HTML-FormFu-0.99999.readme
>
> Halfway down the page in the "DYNAMIC VALUES" section.

I've never used that - you'll have to ask Daisuke for advice.

It does say in the page you linked to, that your 'select_from_db'
subroutine should be in the MyApp::Model::HTML::FormFu package, and
it's called as a method on the model object
    $model->select_from_db

To use query values to build your options list - with C-M-HTML-FormFu
- I've no idea how it works!

I know it could be done though with a combination of
HTML::FormFu::Plugin::StashValid and HTML::FormFu::Model::DBIC's
'condition_from_stash'

Carl

_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to