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}}

Reply via email to