Re: [web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-26 Thread mostwanted
Hey SP, i dont think the problem was the code itself, there must have been something wrong with the version of web2py i had implemented my application on because when i switched to version 2.17.2 that problem disappeard, so i just assumed the problem was with the previous version of web2py i was

Re: [web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-25 Thread sandeep patel
I think there is a problem in field type in Days because the default is a string so days have a string value, you are multiplying string with an integer in the computed field. # 1 db.define_table('ClientDetails', Field('CheckIn', 'date', label=SPAN('Check-In Date', _style="font-wei

[web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-25 Thread mostwanted
With this one there was no error traceback, the form just failed to submit showed a message that read *Error in form, please check it out *and i do have a field Number_of_Guests i just didnt include it coz i thought i was minimizing the whole code to show what could the root cause of the problem

[web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-25 Thread 黄祥
pls show the error traceback, it's hard to know what the root cause. just a quick analyze (guess), perhaps it's no Number_of_Guests field in your table definition, so it can't be calculated best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://