« Return to Thread: data store

Re: data store

by pcarmichael :: Rate this Message:

Reply to Author | View in Thread

This is exactly what I was wanting to do too :-)
I just tried it with Dojo 1.0.2, and it doesn't work for me.
I might be missing something in the rest of the code.
Would you mind posting the complete code, so I try your version?

>
> var data = {data: {
>     identifier : 'id',
>     items : [
>       { id : 'a', label: "Letter A" },
>       { id : 'b', label: "Letter B" },
>       { id : 'c', label: "Letter C" },
>       { id : 'd', label: "Letter D" }
>     ]
>   };
>
> var myNewStore=new dojo.data.ItemFileReadStore(data);
>
> See how that handles it.

 « Return to Thread: data store