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"><<a href="mailto:Jason.Wilson@derm.qld.gov.au">Jason.Wilson@derm.qld.gov.au</a>></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 'delete_if_true' doesn't work. There<br>
is an error of the form:<br>
[error] Caught exception in Cubs::Controller::Cub->formfu_edit "element<br>
not found at<br>
/usr/local/lib/perl5/site_perl/5.10.0/HTML/FormFu/Model/DBIC.pm line<br>
352"<br>
<br>
Reading the code here it would appear to be trying to find the relevant<br>
'repeatable' 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 'delete_if_true' onto the 'Block', 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>