[web2py] Re: What does a SQLFORM needs to delete a record?

2018-01-28 Thread Anthony
On Sunday, January 28, 2018 at 12:05:50 PM UTC-5, Alfonso Serra wrote: > > Because i was trying to indicate the form to delete a record but it is > retrieved instead which does not make much sense. If it is not a mistake i > made and the SQLFORM always retrieves the record before deletion it may

[web2py] Re: What does a SQLFORM needs to delete a record?

2018-01-28 Thread Alfonso Serra
Because i was trying to indicate the form to delete a record but it is retrieved instead which does not make much sense. If it is not a mistake i made and the SQLFORM always retrieves the record before deletion it may be something to improve, unless there is any case im probably missing. On Sun

[web2py] Re: What does a SQLFORM needs to delete a record?

2018-01-28 Thread Anthony
> > That said, why would you retrieve and or validate the record if its going > to be deleted? > How does that relate to your issue here? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: What does a SQLFORM needs to delete a record?

2018-01-28 Thread Alfonso Serra
Not ajax, a regular post, i have even tried removing that condition. No luck, maybe the custom widgets are messing it up. i have finally chosen to delete the record directly bypassing the form. That said, why would you retrieve and or validate the record if its going to be deleted? -- Resour

[web2py] Re: What does a SQLFORM needs to delete a record?

2018-01-28 Thread Anthony
Please show all the relevant code (button creation, view, etc.). Are you sure the condition request.post_vars.submit=="Delete": is True? Is the form being submitted via Ajax? Anthony On Sunday, January 28, 2018 at 5:23:20 AM UTC-5, Alfonso Serra wrote: > > Im have created a form with 2 submits