hello lyn2py can you help me go through this please? On Sunday, October 21, 2012 12:04:17 AM UTC-7, alazar baharu wrote: > > On Friday, October 19, 2012 11:50:20 PM UTC-7, alazar baharu wrote: >> >> 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 >> > hello again sorry for posting again my controlers looks like this > def create_Response(): > form=SQLFORM(db.Response).process() > rows=db().select(db.Office.Office_number= Assigned_Office_Number, > Active=True) > ala= len(rows) - 1 > update=crud.update(db.Office, Free_space=ala) > > if form.accepted: > response.flash="you have sucessfully reponded to the request" > return dict(form=form, update=update) > hope you will get my ideas and provide me a solution soon > 10Q. >
--

