Hi, I have a form, when I click on submit button it is start processing and saving data (events) in table tlogproceso:
Controller def fprocess (): form = SQLFORM.factory (Field ('filename', 'upload', uploadfolder = os.path.join (request.folder, 'uploads'), label = 'DB file')) if form.process (). accepted: db.tlogprocess.insert (date = datetime.datetime.now (), description = 'Start loading the dbf file.') ... ... db.tlogprocess.insert (date = datetime.datetime.now (), description = 'reading dbf file.') ... ... db.tlogproceso.insert (date = datetime.datetime.now (), description = 'Inserting data.') ... ... db.tlogproceso.insert (date = datetime.datetime.now (), description = 'Updating data.') ... ... db.tlogproceso.insert (date = datetime.datetime.now (), description = 'End of the process.') return locals () def showlogevent (): rows = db (db.tlogprocess.pid == 12) .select () return locals () -------------------------------------------------- ------------------------- View (fprocesa.hmtl) {{extend 'layout.html'}} <h3> My process </ 3> {{= form}} <br> <p> Vitacora </ p> {{= LOAD ('default', 'showlogevent.load', ajax = True)}} View (showlogevent.load) {{for row in rows:}} <div class = "post"> date and time: {{= row.fecha}} {{= row.descripcion}} </ div> {{pass}} This way only when the process is finished, it shows the data. Is possible show data from tlogproceso while form is processing ?. Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.