I have the following problem, I am producing an application in W2P, with a CRUD, in the part of deleting an item I am wanting to get the id through a form and that id remove the item from the DB.
I'm trying through this code
def off ():
form = FORM('Informe o ID do item que deseja remover', INPUT(_name='id'), INPUT(_type='submit'))
db(lista.id==request.args(0, cast=int)).delete()
return dict(form=form)