EDIT:

The example I described will upload a file, however it uploads 3 files 
instead of 1 file.
The controller function looks like :

def upfile():
    vars = request.vars
    arrvars = []
    
    //I populate and sort array

    //open a template file from static and write  to it
    db.myfile.form1_file.store(file, 'form1file.xlsx')
    grid = SQLFORM.grid(db.myfile)
    return dict(vals=vals, grid=grid)



I think I will have to redirect to another page to show grid because it 
shows it as empty even though the files are uploaded, but I think I am not 
understanding the way I am supposed to be relating the two tables together 
because it is not uploading appropriately. 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to