FAQ
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/357b922e/attachment.htm

Search Discussions

  • Carl Franks at Mar 28, 2008 at 7:29 am

    On 28/03/2008, Joe Prosser 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-Model-DBIC/t/options_from_model/

    Carl

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphtml-formfu @
categoriesperl, catalyst
postedMar 28, '08 at 1:36a
activeMar 28, '08 at 7:29a
posts2
users2
websitemetacpan.org...

2 users in discussion

Joe Prosser: 1 post Carl Franks: 1 post

People

Translate

site design / logo © 2022 Grokbase