0
votes

I'm developing an app with a worklist.

It is made up of users which are added by querying a database using breeze.

User's can be added or removed from the worklist using the app.

I would like to be able to save the list offline, so that when the browser is refreshed the list is re-populated.

The list at the moment is a ko observable array of breeze entities.

I've tried saving it straight into offline cache but I get circular reference errors. I know I can save all the data by exporting from the entity manager; however I would like to keep track of the worklist not the whole cache.

How can I achieve this?

1
Google breeze.js export entitiesPW Kad

1 Answers

1
votes

PW Kad is correct, you can export just a subset of the entities in the cache with the EntityManager.exportEntities method. Something like

exportList = [ entity1, entity2, entity3 ];
var exported = myEntityManager.exportEntities(exportList);