-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote
(on Thursday, 03 July 2008, 12:12 PM -0400):
> -- Fabrice Terrasson <[EMAIL PROTECTED]> wrote
> (on Thursday, 03 July 2008, 03:10 PM +0200):
> > Matthew Weier O'Phinney a écrit :
> > > -- Fabrice Terrasson <[EMAIL PROTECTED]> wrote
> > > (on Wednesday, 02 July 2008, 06:33 PM +0200):
> > dojo.data.ItemFileReadStore  seems to accept by default json like:
> > {"identifier":"produit",
> > "items":[
> > {"id":"1","produit":"pomme"},
> > {"id":"2","produit":"orange"},
> > {"id":"3","produit":"poire"},
> > {"id":"4","produit":"abricot"}
> > ]}
> > (each item in curly brackets).
> > 
> > Zend_Dojo_Data->toJson() returns a json like:
> > {"identifier":"produit",
> > "items":{
> > "pomme":{"id":"1","produit":"pomme"},
> > "orange":{"id":"2","produit":"orange"},
> > "poire":{"id":"3","produit":"poire"},
> > "abricot":{"id":"4","produit":"abricot"}
> > }}
> > (no simple bracket around items [ ] and a sole value facing item)
> > and the dojo store (dojo.data.ItemFileReadStore) is empty.
> 
> Aha -- good catch! I can fix that easily, and will do so momentarily.
> Thanks!

Should be fixed now -- please test!


-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to