Using FormFu this can be painful.<br><br><a href="http://search.cpan.org/~snafufans/CatalystX-ListFramework-0.5/lib/CatalystX/ListFramework.pm">http://search.cpan.org/~snafufans/CatalystX-ListFramework-0.5/lib/CatalystX/ListFramework.pm</a> will build you pretty tables of data.<br>
<br>hth,<br><br>Devin<br><br><div class="gmail_quote">On Tue, Jun 16, 2009 at 11:03 PM, Wilson Jason <span dir="ltr">&lt;<a href="mailto:Jason.Wilson@derm.qld.gov.au">Jason.Wilson@derm.qld.gov.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
All,<br>
<br>
Unfortunately nobody has been able to help me with this.<br>
<br>
After much more trial and error I have something that almost works.<br>
<br>
An extract from the FromFu config looks like:<br>
  - type: Hidden<br>
    name: a_count<br>
<br>
  - type: Block<br>
    tag: table<br>
    attributes:<br>
      border: 1<br>
<br>
    elements:<br>
    - type: Repeatable<br>
      tag: tr<br>
      nested_name: list<br>
      counter_name: a_count<br>
      model_config:<br>
        empty_rows: 1<br>
<br>
      elements:<br>
      - type: Hidden<br>
        name: id<br>
<br>
      - type: Block<br>
        tag: td<br>
        elements:<br>
        - type: Text<br>
          name: relationship<br>
<br>
      - type: Block<br>
        tag: td<br>
        elements:<br>
        - type: Select<br>
          name: listnames<br>
<br>
      - type: Block<br>
        tag: td<br>
        elements:<br>
        - type: Checkbox<br>
          name: delete_me<br>
#          model_config:<br>
#              delete_if_true: 1<br>
<br>
This renders well enough for my purposes.<br>
<br>
The problem is that the option to &#39;delete_if_true&#39; doesn&#39;t work. There<br>
is an error of the form:<br>
[error] Caught exception in Cubs::Controller::Cub-&gt;formfu_edit &quot;element<br>
not found at<br>
/usr/local/lib/perl5/site_perl/5.10.0/HTML/FormFu/Model/DBIC.pm line<br>
352&quot;<br>
<br>
Reading the code here it would appear to be trying to find the relevant<br>
&#39;repeatable&#39; for the model_config but cant as it is inside a nested<br>
Block.<br>
<br>
Any idea on how I might be able to work around this problem? I tried<br>
moving the &#39;delete_if_true&#39; onto the &#39;Block&#39;, but it just ignores it.<br>
<br>
Thanks for any assistance,<br>
<div><div></div><div class="h5">  Jason<br>
<br>
<br>
As of 26 March 2009 the Department of Natural Resources and Water/Environmental Protection Agency integrated to form the Department of Environment and Resource Management<br>
<br>
+----------------------------------------------------------------+<br>
Think B4U Print<br>
1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere<br>
3 sheets of A4 paper = 1 litre of water<br>
+----------------------------------------------------------------+<br>
<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Devin Austin<br><a href="http://www.codedright.net">http://www.codedright.net</a><br><a href="http://www.dreamhost.com/r.cgi?326568/hosting.html">http://www.dreamhost.com/r.cgi?326568/hosting.html</a> - Host with DreamHost!<br>