Maybe you should abandon this node then, because there isn't going to be code you can run. The config file (for a PERL MODULE) that I posted is capable of deleting a DBIC model without any perl code. I don't think you're familiar with HTML::FormFu and I don't think you're going to be able to answer my question without previous knowledge of this semi complex form framework. I could post a huge catalyst app for you with a sql dump of my database, but lets be real; no one is going to deal with all that shit, especially when relevant code is merely
<model_config> resultset Sets delete_if_empty 1 </model_config>
remove delete_if_empty 1, and nothing gets deleted if the input is blank. Leave it there, and the row it belongs to (along with every row related to it) gets deleted. No perl code required besides telling my catalyst controller to use a formfu config for the action's form. This is clearly intended behavior, and shouldn't require code to explain. What does require an explanation is how do I delete only the row it belongs to, and if this requires setting a parameter in the config to point the element to a different ResultSet how do I do this?

In reply to Re^4: FormFu, DBIC, and multiple tables by uG
in thread FormFu, DBIC, and multiple tables by uG

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.