Hi,
you have to distinguish between loading the data and bringing the data  to
the UI. That are usually two different kind of things. Thats why the file
could be loaded quite fine but the connection to the tree is not set up
correct for example. A good idea is to check if the model is available in
the store after the loading. You can use the debugProperties method [1] see
the data in the model. 

If the model is available as expected, check if the model is also available
in the tree controller. If thats also true, I guess the problem is the name
of the properties. The needs to know where to find the children and the
labels. Otherwise, it  just does nothing.

Best,
Martin

[1] http://demo.qooxdoo.org/current/apiviewer/#qx.dev.Debug~debugProperties


Riccardo-Maria BIANCHI wrote:
> 
> 
> Hello,
> 
> I'm trying to set up a tree from a JSON file, following the example on 
> the demobrowser.
> 
> But I'm not able to make the tree loading the JSON file.
> 
> If I pass the JSON info from a server call I get the tree status label 
> stucked on "configured" status.
> 
> And if I serve a normal JSON txt local file to the tree, I get the 
> status "completed" by the tree remains empty.
> 
> I'm sure I'm missing something very stupid ;-) For example:
> 
> 1) in case of local file:  where should I put the file? Is there any 
> preferred location/folder?
> 
> 2) in case of a JSON passed from a server call: is there any 
> format/setting that I have to set up?
> 
> Thanks for your kind help,
> 
> ....and Merry Christmas Time to all of you!! :-D
> 
>    Ric.
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Tree-from-JSON-file-tp4186982p4190543.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to