Hi, I've just started looking at Sencha Architect and I've started moving a hand crafted Sencha Touch 2 app over to Architect but I have a problem reading a local json file to populate a NestedList. It works fine in my Touch 2 app but not inside Architect. I noticed the Sencha Web Server was showing [WRN] EXCEPTION when I refresh in designer to try to show the data. I then switched on --debug for the web server and it produced additional messages shown below.
In architect I see a red exclamation mark next to the store with a hint that says "Unable to load data. Click to view error. " When I click this I see a dialog that contains the same text so that is not much help!
[Later]
Having typed a much longer message showing code and debug output from Sencha Web Server, I spotted the problem so I've deleted the rest of this massive message.
The problem was caused by a space at the start of my url for the data file in the config. A simple mistake but I do thing Architect could have been a bit more friendly than a) accepting the space at the start and b) just showing "Unable to load data. Click to view error. "
Anyway, this might help others.
John.
In architect I see a red exclamation mark next to the store with a hint that says "Unable to load data. Click to view error. " When I click this I see a dialog that contains the same text so that is not much help!
[Later]
Having typed a much longer message showing code and debug output from Sencha Web Server, I spotted the problem so I've deleted the rest of this massive message.
The problem was caused by a space at the start of my url for the data file in the config. A simple mistake but I do thing Architect could have been a bit more friendly than a) accepting the space at the start and b) just showing "Unable to load data. Click to view error. "
Anyway, this might help others.
John.
Aucun commentaire:
Enregistrer un commentaire