As both Manuele and Leonel said, I changed it to args(0). But no use. It
was still not working.
I actually changed a bit and now I am getting 'd' by get.vars.
def pro_del():
d = request.get_vars.d
db(db.products.product_id == d).delete()
session.flash = "Product Del
Thanks Manuele. Just writing (0) worked for me as my product_id is'nt an
int type. Its alphanumeric.
On Wednesday, July 9, 2014 4:32:55 PM UTC+5:30, Manuele wrote:
Il 09/07/14 10:32, samurai ha scritto:
> > def pro_del():
> > d = request.args
> > db
This is the function for deleting a record from database.
def pro_del():
d = request.args
db(db.products.product_id == d).delete()
session.flash = "Product Deleted"
redirect(URL('default','index'))
#return locals()
The id is successfully getting passed to
If u have got the answer then please share with us also.
On Wednesday, July 9, 2014 4:30:59 AM UTC+5:30, Fabiano Almeida wrote:
>
> Hi,
>
> Has like 'accepted' attribute in SQLEDITABLE?
>
> I need redirect to other page after 'ok' click.
>
> Thanks,
>
> Fabiano.
>
--
Resources:
- http://web2py.c
4 matches
Mail list logo