I had to send this from my phone due to an unknown error with google groups so 
I am sorry if the formatting is off

I have the function:



@service.json
 def sub_file():

    # side note: I am expecting a list of table references here, but just get 
'||' (For testing, I retrieve a file via direct access)

    # sub_ids = db(db.requests.id==114).select(db.requests.subs) 

    s_file = [URL('download', args=db.s_files[1].s_file)] # the file is 
represented as a string: '/app/default/download/file…'



    return s_file



in the view:

jQuery.getJSON("{{=URL(r=request,f='call', args=['json','sub_file'])}}",

   function (vals) { 



// I do not know how to access the file here

    

    });



I appreciate any help. Thank you.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to