should be

thisrecord=db(db.person.id==1).select()[0]
form=SQLFORM(db.person, thisrecord) # <<<<
form.vars.name="test"
db.person.name.update="test"
form.accepts(request.vars,session) # <<<<



On Mar 3, 4:28 am, vince <lapcc...@gmail.com> wrote:
> i want to do an update with a specific default input value like this
>
> thisrecord=db(db.person.id==1).select()[0]
> form=SQLFORM(thisrecord)
> form.vars.name="test"
> db.person.name.update="test"
>
> both form.vars or field.update doesn't work as you've mention they are
> visualized field
> is there any way to do this?
>
> -vince
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to