>
> Solved the issue.
>
I found a post on
http://salesforce.stackexchange.com/questions/41917/trying-to-implement-lazy-loading-with-fancytree
<http://salesforce.stackexchange.com/questions/41917/trying-to-implement-lazy-loading-with-fancytree>
It appeared that the format of the items in the JSON result had to be
encapsulated in quotes.
At the moment I am writing the JSON format in the controller myself with
for kpl_child in kpl_children:
result += '{title: "' + kpl_child.description + '", key:
"id' + str(kpl_child.id) + '", folder: true, lazy: true},'
this worked for the source parameter in the fancytree javascript but
apparently not for the lazyload parameter which has to be
for kpl_child in kpl_children:
result += '{"title": "' + kpl_child.description + '",
"key": "id' + str(kpl_child.id) + '", "folder": false, "lazy": true}'
I will try some of the simpleJSOn methods to see if I can compact things a
bit more.
--
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.