This looks like a job for ajax.

Make a callback to the controller to delete the row using :eval.  The 
callback function returns a jquery code to delete the row from the page.

I would give you a link to the book, but I'm having problems going to 
web2py.com.

On Friday, June 1, 2012 6:43:37 AM UTC-4, Johann Spies wrote:
>
> I have a screen with a simple search form in the top halve and a grid at 
> the bottom part showing the items found in the search a session variable.  
> The grid part is a component.
>
> I want to be able to remove individual items from the grid without leaving 
> the page - just reloading the component part.
>
> The grid query uses session.skrywers (a list) to build the grid.  If I put 
> in a link with the label 'Remove' in the row that will do 
> 'session.skrywers.remove(db.table[request.args(0)].uuid) and reload the 
> grid (bottom part of the screen) it will be perfect.  
>
> How do I do it without leaving the page? 
>
> Regards
> Johann
>
> -- 
> Because experiencing your loyal love is better than life itself, 
> my lips will praise you.  (Psalm 63:3)
>
>

Reply via email to