You have right!
Instead of:
f1 = db.tab1.insert(field_gen='something')
form = SQLFORM(db.tab1,record=db.tab1(f1),showid=False, \
fields=['field1','field_gen'], \
)
should be:
if len(request.post_vars)==0:
f1 = db.tab1.insert(field_gen='something')
else:
f1 = request.p
>
> I can't solve problem with SQLFORM update. I need to compute some field
> (`field_gen`), and be sure, that form filled by an user will be inserted in
> the same record.
>
Can you show the actual controller (the action that processes the form)?
Note that If you use a self submitted update f
2 matches
Mail list logo