ItemFileWriteStore: how to change the data?

Posted by jeff porter on Stack Overflow See other posts from Stack Overflow or by jeff porter
Published on 2010-05-20T14:25:02Z Indexed on 2010/05/21 3:10 UTC
Read the original article Hit count: 328

Filed under:

Hi,

I'd like to change the data in my dojo.data.ItemFileWriteStore.

Currently I have...

var rawdataCacheItems = [{'cachereq':'14:52:03','name':'Test1','cacheID':'3','ver':'7'}];
var cacheInfo = new dojo.data.ItemFileWriteStore({
        data: {
            identifier: 'cacheID',
            label: 'cacheID',
            items: rawdataCacheItems
        }
    });

I'd like to make a XHR request to get a new JSON string of the data to render.

What I can't work out is how to change the data in the "items" held by ItemFileWriteStore.

Can anyone point me in the correct direction?

Thanks Jeff Porter

© Stack Overflow or respective owner

Related posts about dojo