[web2py] Re: Deleting all items of a selecte ID at the same time

2020-01-18 Thread mostwanted
Finally i was able to solve this problem! I used a session to carry forward the details of the company whose quotations I wanted to delete. It is finally working as I wanted. Thanks again Anthony, you previously hinted it but it didnt get it back then, when i went back to the problem a year

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-07 Thread mostwanted
With regards to validation considering the scope of the app i'm working on, i will be using @auth.requires_login() to control and restrict who does what but thanks for bringing up digitally signed URL, i will be looking extensively in to that, its an interesting topic. I have changed my code,

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-07 Thread Anthony
On Monday, January 7, 2019 at 2:06:43 AM UTC-5, mostwanted wrote: > > My delete function is not working, I think I am doing doing something > wrong but i'm not sure where, I thought the code below would get me home > but nothing is happening, nothing is getting deleted! Please advice: > >

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-06 Thread mostwanted
My delete function is not working, I think I am doing doing something wrong but i'm not sure where, I thought the code below would get me home but nothing is happening, nothing is getting deleted! Please advice: *DELETE FUNCTION CONTROLLER CODE:* def deleteInvoice():

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-06 Thread Anthony
On Sunday, January 6, 2019 at 9:15:41 AM UTC-5, mostwanted wrote: > > Hey Anthony, thanks for the heads up in the garbage code in the controller > i will address it, with regards to deleting invoices i want to be able to > delete all invoices in the db.invoice table but only for a specific >

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-06 Thread mostwanted
Hey Anthony, thanks for the heads up in the garbage code in the controller i will address it, with regards to deleting invoices i want to be able to delete all invoices in the db.invoice table but only for a specific selected client. I want to be able to delete an entire invoice by clicking

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-06 Thread Anthony
> > *INVOICE DELETING CONTROLLER* > def deleteInvoice(): > #THE .first() FUNCTION IN THE LINE BELOW ONLY ALLOWS ME TO DELETE ITEMS > ONE AT A TIME > *query = db(db.invoice.id==request.args(0, cast=int)).select().first() > * > remove = db(db.invoice.id==query).delete() > Above, query is