Hey Lynn, Not sure if this is what you ask for - I am passing query values as parameters in the view here
#Sample Function in controller def showmyimage(): # Some db query you want to see data for displayimage = db.tableName(request.args(0,cast=int)) or redirect(URL('index')) return dict (dispimage=dispimage) In view - showmyimage.html <!-- you can utilize it in this way - For example it is an image that you want to serve on the page. somephoto is the field name where image is uploaded or something --> <img src="{{=URL('download', args=displayimage.somephoto)}}" /> Rahul On Wednesday, July 24, 2019 at 8:50:57 PM UTC+5:30, Lynn wrote: > > > It seems that i cannot call a function with a parameter of a controller > from the view. > -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/1b4bbd0c-0269-4607-a29e-0367862088f6%40googlegroups.com.