[web2py] Re: Object not found

2018-09-28 Thread mostwanted
On Friday, September 28, 2018 at 1:40:56 PM UTC+2, mostwanted wrote: > > Hey Matthew, i have another view called viewPurchases that has a link that > sends my args to the client_update controller, i didnt include it in the > above code i thought is wasn't important it looks like this: > > *vie

[web2py] Re: Object not found

2018-09-28 Thread mostwanted
Hey Matthew, i have another view called viewPurchases that has a link that sends my args to the client_update controller, i didnt include it in the above code i thought is wasn't important it looks like this: *viewPurchases VIEW* Client Surname Booked Room Reservation /

[web2py] Re: Object not found

2018-09-28 Thread 'Matthew J Watts' via web2py-users
Looks like you are not sending/recieving your args properly ( For example You need to send args=Customer.id , from a button or redirect for example You then need to request the Customer.id in the 'Client_Update' function So you'd need def Client_Update(): client=request.args(0,cast=int)