Hi,
My noobness is not seeing the difference between when calling
controller functions using
{{=LOAD(request.controller,'someaction.load')}}
vs
{{=LOAD(request.controller,'someaction')}} as discussed here:
https://groups.google.com/group/web2py/browse_frm/thread/713d37dd854c54bb/ea6bed4a71253a1d
Thanks,
Rob
On Jul 13, 10:06 am, mdipierro <[email protected]> wrote:
> BTW since 1.80.1 welcome include a generic.load
> what is it?
>
> Say you have
>
> def someaction():
> """ any action """
> return dict(form=crud.create(db.mytable))
>
> which may or may not have a view. And you have another action
>
> def index(): return dict()
>
> with its own view
>
> {{extend 'layout.htm'}}
> Hello
>
> Now you can include an ajax callback from the latter to the former
> with
>
> {{extend 'layout.htm'}}
> Hello
> {{=LOAD(request.controller,'someaction.load')}}
>
> NOTICE .load. The form will be ebedded in the view. The processing
> will not reload the page. The flash message will be displayed
> correctly.
>
> To use in old apps you need to copy views/generic.load into your old
> app.