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
Thanks !
On Saturday, March 24, 2012 5:26:52 AM UTC+1, Javier wrote:
sabsto
You can use selectable, for example:
selectable = lambda ids: delete(ids)
form=SQLFORM.grid(query,selectable=selectable)
def delete(ids):
to_delete=db(db.tabla.id.belongs(ids))
to_delete.delete()
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:
You can use selectable, for example:
selectable = lambda ids: delete(ids)
form=SQLFORM.grid(query,selectable=selectable)
def delete(ids):
to_delete=db(db.tabla.id.belongs(ids))
to_delete.delete()
Nice. Forgot about that.
Is it possible to select and delete multiple rows with one button click
using SQLFORM.grid ? (instead of clicking delete on each row)
I tried the selectable property but this doesn't help to delete.
I searched the archive of this group / mailing-list without success
Not out of the box. I
Or you could avoid javascript, store the IDs of the deleted items in the
session and do your own calls to the DAL to delete items.
On Friday, March 23, 2012 7:33:42 AM UTC-7, Anthony wrote:
Is it possible to select and delete multiple rows with one button click
using SQLFORM.grid ? (instead
sabsto
You can use selectable, for example:
selectable = lambda ids: delete(ids)
form=SQLFORM.grid(query,selectable=selectable)
def delete(ids):
to_delete=db(db.tabla.id.belongs(ids))
to_delete.delete()
On Fri, Mar 23, 2012 at 9:46 PM, Derek sp1d...@gmail.com wrote:
Or you could
7 matches
Mail list logo