apple
unread,Jul 19, 2011, 6:44:59 AM7/19/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
The following works fine with the SQLFORM line and ajax=false or
ajax=true. However replacing SQLFORM line with the CRUD line it works
with ajax=true but fails with ajax=false, generating one of those
annoying "restricted errors". I am guessing related to previous issue
with request.vars and load?
CONTROLLER
def test():
return dict()
def testload():
form=crud.update(db.customer,"1")
#form=SQLFORM(db.customer,"1")
return dict(form=XML(form.xml()))
TEST.HTML VIEW
{{extend 'layout.html'}}
{{=LOAD(c='crm',f='testload.load', ajax=False, ajax_trap=True)}}
TESTLOAD.LOAD VIEW
{{=form}}