Re: [web2py] Re: Creating a batch using a loop

2016-09-26 Thread Oasis Agano
I solved it already using sqlform factory then if form accepted do the loops... and thanks for your help On Tuesday, September 27, 2016 at 5:48:14 AM UTC+3, Jim S wrote: > > You don't have to pass it. Just use the DAL to insert the records you > need. > > What fields are you having the user e

Re: [web2py] Re: Creating a batch using a loop

2016-09-26 Thread Jim Steil
You don't have to pass it. Just use the DAL to insert the records you need. What fields are you having the user enter data into when the form is displayed? You can just use SQLFORM.factory to gather them. Then in the 'if form.process().accepted:' put the code to insert the records into the data

Re: [web2py] Re: Creating a batch using a loop

2016-09-26 Thread Michele Comitini
Could be an issue with some reference field. Are you using a IS_IN_DB validator in your model? could be that you are passing a wrong parameter to the validator. But with so little info it is just a guess. 2016-09-26 15:21 GMT+02:00 Anthony : > Hard to say what the problem is without seeing t