On Monday, March 26, 2012 4:38:57 PM UTC+5:30, Sanjeet Kumar wrote:
>
> can use the following :- 
>
> form=SQLFORM.grid(db.auth_user, create=False, selectable = lambda ids: 
> del_emp(ids)) 
>
> def del_emp(ids): 
>         if not ids: 
>                 response.flash='Please Select the Check-box to Delete' 
>         else: 
>                 for row in ids: 
>                         db(db.auth_user.id == row).delete() 
>                 pass 
>         pass 
>         return '' 
>
>
response.flash does not seem to work. But session.flash works.
So I assume the form is indeed submitted.

Is there a "web2py" way (I mean without java script) to prevent form 
submission if no records are selected ? 

-Mandar

-- 



Reply via email to