[html-formfu] Re: HTML-FormFu Digest, Vol 11, Issue 23

Joe Prosser jvprosser at gmail.com
Fri Mar 28 20:24:11 GMT 2008


Hi Folks,
I am still getting the hang of things here.
I went to the  this link for examples:
http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Model-HTML-FormFu-0=
.99999.readme

If I'm using the following yml:
   - type: Select
     label: Channel
     name: personality_fkey
     model_config:
       DBIC:
         resultset: channels



I get a 500 error and the following:
[info] *** Request 4 (0.000/s) [11474] [Fri Mar 28 16:03:25 2008] ***
[debug] "GET" request for "customer/edit/2" from "127.0.0.1"
[debug] Path is "customer/edit"
[debug] Arguments are "2"
[debug] Catalyst::Controller::HTML::FormFu::Action::Config searching for
file '/var/www/html/Odbill/root/forms/customer/add.yml'
[error] Caught exception in Odbill::Controller::Customer->edit "Can't locate
object method "model_config" via package "HTML::FormFu::Element::Select" at
/usr/lib/perl5/site_perl/5.8.8/HTML/FormFu/ObjectUtil.pm line 270.

I must be missing something simple.....

Any tips would be appreciated,
-Joe



On Fri, Mar 28, 2008 at 8:58 AM, Joe Prosser <jvprosser at gmail.com> 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.
>
> Thanks!
> -Joe
>
>
>
> On Fri, Mar 28, 2008 at 8:00 AM, <html-formfu-request at lists.rawmode.org>
> wrote:
>
> > Send HTML-FormFu mailing list submissions to
> >        html-formfu at lists.rawmode.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >        http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
> > or, via email, send a message with subject or body 'help' to
> >        html-formfu-request at lists.rawmode.org
> >
> > You can reach the person managing the list at
> >        html-formfu-owner at lists.rawmode.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of HTML-FormFu digest..."
> >
> >
> > Today's Topics:
> >
> >   1. Question on dynamic select (Joe Prosser)
> >   2. Re: Question on dynamic select (Carl Franks)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Thu, 27 Mar 2008 21:36:37 -0400
> > From: "Joe Prosser" <jvprosser at gmail.com>
> > Subject: [html-formfu] Question on dynamic select
> > To: html-formfu at lists.rawmode.org
> > Message-ID:
> >        <22d5b8df0803271836y3090fdd5hf2251de04194d563 at mail.gmail.com>
> > Content-Type: text/plain; charset=3D"iso-8859-1"
> >
> > Hi Folks,
> > I'm trying to include a query-driven select field in a Repeatable
> > section
> > (subset shown below).
> >
> > Where does the "select_from_db" subroutine live and how does the query
> > result need to get "munged" in order to work?
> >
> > Thanks,
> > -Joe
> >
> > - type: Repeatable
> >     nested_name: cust_details
> >     increment_field_names: 1
> >     db:
> >
> >     elements:
> >       - type: Hidden
> >         name: pkey
> >
> >       - type: Select
> >         options: __dynamic(select_from_db)__
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> > http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20080327/35=
=3D
> > 7b922e/attachment.html<http://lists.scsys.co.uk/pipermail/html-formfu/a=
ttachments/20080327/35=3D7b922e/attachment.html>
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Fri, 28 Mar 2008 07:29:41 +0000
> > From: "Carl Franks" <fireartist at gmail.com>
> > Subject: Re: [html-formfu] Question on dynamic select
> > To: "HTML Form Creation,        Rendering and Validation Framework"
> >        <html-formfu at lists.rawmode.org>
> > Message-ID:
> >        <4f352aae0803280029n3fec9fe2o874262fc42a23ecd at mail.gmail.com>
> > Content-Type: text/plain; charset=3DISO-8859-1
> >
> > On 28/03/2008, Joe Prosser <jvprosser at gmail.com> wrote:
> > > Hi Folks,
> > > I'm trying to include a query-driven select field in a Repeatable
> > section
> > > (subset shown below).
> > >
> > > Where does the "select_from_db" subroutine live and how does the query
> > > result need to get "munged" in order to work?
> > >
> > > Thanks,
> > > -Joe
> > >
> > > - type: Repeatable
> > >      nested_name: cust_details
> > >      increment_field_names: 1
> > >      db:
> > >
> > >      elements:
> > >        - type: Hidden
> > >          name: pkey
> > >
> > >        - type: Select
> > >           options: __dynamic(select_from_db)__
> >
> > I'm not sure where you got the __dynamic()__ idea from - neither
> > formfu or catalyst support any such thing.
> > If you're using DBIx::Class, see the test files in svn for examples of
> > how to populate select options from the db using
> > HTML::FormFu::Model::DBIC.
> >
> > http://code.google.com/p/html-formfu/source/browse/trunk/HTML-FormFu-Mo=
del-DBIC/t/options_from_model/
> >
> > Carl
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > HTML-FormFu mailing list
> > HTML-FormFu at lists.rawmode.org
> > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
> >
> > End of HTML-FormFu Digest, Vol 11, Issue 23
> > *******************************************
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20080328/a4=
ba0353/attachment-0001.htm


More information about the HTML-FormFu mailing list