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

Joe Prosser jvprosser at gmail.com
Fri Mar 28 12:58:44 GMT 2008


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/att=
achments/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-Mode=
l-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/f2=
fef4e7/attachment.htm


More information about the HTML-FormFu mailing list