[jifty-devel] How to delete a record through an action

Stanislav Sinyagin ssinyagin at yahoo.com
Sat Feb 16 06:47:02 EST 2008



----- Original Message ----
From: Andrew Hanenkamp <sterling at hanenkamp.com>


       <% Jifty->web->form->start %>
       <% Jifty->web->link
       (label  => 'Delete',
        as_link => 1,
        onclick => {
            submit => $delAction,

Replace the line above with:

  submit => { action => $delAction, arguments => { id => $request->id(), }, },
 
and drop the line below starting with "args => ".


            args => { id => $request->id() },
            refresh_self => 1 }) %></TD>

       <% Jifty->web->form->end %>
     </TR>

%       }
     </TABLE>
%    }




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.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jifty.org/pipermail/jifty-devel/attachments/20080216/59fa0e32/attachment.htm 


More information about the jifty-devel mailing list