[html-formfu] Having issues with nested repeatable loading from db.

Leanan Sidhe the.leanan.sidhe at gmail.com
Fri Mar 6 14:55:02 GMT 2009


I think the point was not to have the PK be non-hidden, but to just not
require it be on the form at all.

I'm not familiar with the code, but I imagine removing it entirely from the
form would either
a) make things more difficult
b) make things impossible

I do recommend though that there be some extra clarification for the
documentation of HTML::FormFu::Model::DBIC to mention that the (countname? I
forget the name of the field) needs to be set to the name that you want for
your hidden count field, and that the table that you are repeating from's PK
is in a hidden field as well.  (IE, these are *required*).  I never assume
anything in an example is needed unless it is explicitly documented as such,
and I saw no need to put my table's primary key in the form, since I wasn't
using it.  I also had no need for a "count" of items, because I didn't care
how many there were so long as they all displayed.  I've long since learned
to try to stop wondering how the magic works and just accept that it works
-- but when there are things that are required for the magic to work, they
really should be explained more clearly.  I spent 3 days trying to figure
this out.  Had I known those fields were required and necessary, I'd have
had this form up and running 3 days ago.  Very frustrating, and I would
hazard a guess that I am not the only one who has had issues with this lack
of clarity.

On Fri, Mar 6, 2009 at 7:14 AM, Carl Franks <fireartist at gmail.com> wrote:

> 2009/3/5 Moritz Onken <onken at houseofdesign.de>:
> > I really really wish that the ID should not be a Hidden field. I ran in=
to
> > this problem several times.
> >
> > Maybe it's time to patch that :)
>
> Other than debugging, would there be a legitimate reason to ever want
> a non-hidden field for the PK?
>
> Carl
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20090306/82=
466d10/attachment.htm


More information about the HTML-FormFu mailing list