Hi there,
I am a newbie to web2py. I did try to look for similar threads but couldn't
find a solution specifically for my problem. I want to pre-populate a form
from a current record in the SQLFORM.grid.
addpass = [lambda project: A('add pass', _class="btn",
_href=URL("default","addpass"))]
# added a link button to open form addpass which should have pre-populated
fields in sgrid shown below.
sgrid = SQLFORM.grid(db.nextpasses, links=addpass, create=False, editable=
False, deletable=False,
fields=[db.nextpasses.DOY,db.nextpasses.STATION,db.nextpasses.BOT,db.nextpasses.EOT],
maxtextlength=50,headers={'nextpasses.DOY' : 'DOY','nextpasses.STATION' :
'Station', 'nextpasses.BOT' : 'Aos', 'nextpasses.EOT' : 'Los'})
Any help would be greatly appreciated!
many thanks and regards,
John Philip
--
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/groups/opt_out.