<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="margin-left: 40px;">----- Original Message ----<br>From: Andrew Hanenkamp <sterling@hanenkamp.com><br><br></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 6.8ex; padding-left: 1ex;"> <% Jifty->web->form->start %><br> <% Jifty->web->link<br> (label => 'Delete',<br> as_link => 1,<br> onclick =>
{<br> submit => $delAction,</blockquote>
<div style="margin-left: 40px;"><br>Replace the line above with:<br><br> submit => { action => $delAction, arguments => { id => $request->id(), }, },<br> <br>and drop the line below starting with "args => ".<br></div><div style="margin-left: 40px;"><br> args => { id => $request->id() },<br> refresh_self => 1 }) %></TD><br>
<% Jifty->web->form->end %><br> </TR><br><br>% }<br> </TABLE><br>% }<br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br></blockquote>I did so, but it didn't work either. The ID is somehow passed to the Action, but it does not load the object from database before taking action.<br><br><br></div></div></div></div></body></html>