hello every on e am developing a simple office space management information
system using web 2py and i get in trouble doing some tasks.
i have a table called office where office information will be saved there
including office capacity and there is also a table which helps in giving
office to users
and what i want is when submitting a data in the office giving table i want
to decrease one space in the office table record ? but i cant do this is
there any one who can help me doing this please ?
my controller looks like this
def create_Response():
form=SQLFORM(db.Response).process()
##here i want to add the code
if form.accepted:
response.flash="you have sucessfully reponded to the request"
return dict(form=form)
--