I need to test it but I do not see if should not work.
Can you try:
LOAD(...,ajax=True)
and or
def AP():
response.view = 'blank.html'
return response.render('default/
blank.html',message=db(db.Purchase_Invoice.id>0).select(db.Purchase_Invoice.Due.sum()))
On Feb 22, 12:09 pm, vihang <[email protected]> wrote:
> Hi,
>
> I tried the following code
>
> def index():
> return dict(message="Accounting Dashboard")
>
> def AP():
> response.view = 'blank.html'
> return
> dict(message=db(db.Purchase_Invoice.id>0).select(db.Purchase_Invoice.Due.sum()))
>
> The calling AP using LOAD in index.html works fine, but does not use
> the template 'blank.html', but the generic one. If I create AP.html,
> then it works fine. Is it possible to use response.view somehow with
> LOAD ??
>
> Thanks
> Vihang
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.