Do you mean that you need to access a particular variable on form submission or do you mean you can't update the database?
Which part you can't do? Did you run into an error / ticket? On Wednesday, October 24, 2012 1:13:13 PM UTC+8, alazar baharu wrote: > > can any one help me solving this problem please ? 10Q. > > 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. >> > --

