Thank you @Leonel, I tried your suggestion and it works but the JSON 
response replaces the HTML so, I can't see my Datatable only the plain 
array information from JSON response. 
I don't understand if I call the controller wrong or what is happening?

El martes, 11 de junio de 2019, 5:52:42 (UTC-3), Leonel Câmara escribió:
>
> It's because you're not using the generic.json view and you're also not 
> setting the response.headers content-type to json. I would simply change 
> your function to this which will do everything for you:
>
> def manageCareer():
>     rows = db((db.Career.faculty == db.Faculty.id)&(db.Career.degree == 
> db.Degree.id)).select()
>     return response.json({'results': rows}) 
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/77593852-dead-48f2-af37-6d2244844ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to