[web2py] Re: compute field and uploading file

2016-03-25 Thread Dave S
On Friday, March 25, 2016 at 12:49:54 PM UTC-7, Leonel Câmara wrote: > > Can you tell me exactly what you're trying to do? I see how you're trying > to do it and it seems complicated, so I'd like to know what you're trying > to accomplish first. > It looks like he's doing 2 things: adding mult

[web2py] Re: compute field and uploading file

2016-03-25 Thread Leonel Câmara
Can you tell me exactly what you're trying to do? I so how you're trying to do it and it seems complicated, so I'd like to know what you're trying to accomplish first. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: compute field and uploading file

2016-03-25 Thread aetagothno
Given the table : db.define_table('form1', Field('field1, 'string'), Field('field2', 'string'), Field('field3', 'integer'), Field('form1_file', 'upload', compute=fpost)) If a user is starting a form session and enter the value 2, they submit values for: field1_0, field2_0, field3_

[web2py] Re: compute field and uploading file

2016-03-25 Thread aetagothno
Instead of removing the upload/compute field and making a separate table for that.. Is this something a virtual field can be used for? I'm still trying to read more on virtual fields and gain an understanding but essentially the compute field will call onto a class which is being passed the row

[web2py] Re: compute field and uploading file

2016-03-24 Thread aetagothno
Or maybe would I have to construct a class within the models file so that it is called in form1compute each time, and the values from row are passed to it and saved in an array within that? I'm not that advanced with python but I think I need the class in order to actually continue to append all