How to Use Crosslight with All Related Data Available Offline

1 reply. Last post: June 25, 2015 3:14 AM by Arief Handany
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jimmy TungolMember

Hi,

How can we use Crosslight Enterprise Framework to enable offline storage with filtered data? While the app can be semi-disconnected, we need our app to able to download data based on a given criteria, condition and/or range. I'm not sure that was covered anywhere in an article, documentation or sample codes. Well... we don't want to load all data from the database and store it in a local storage, because that would be absurd - considering data can be very huge. Although there will be instances where all data from specific tables should be stored locally, like those that are used as lookup tables (e.g. Caregories).

How can this be accommodated by the Enterprise Framework? Say for example, we only need data stored locally based on the user. By that, we mean a set of data (filtered) from a parent table and child tables that are related to the parent. At the same time, also include all data from specific tables that are used as lookup tables (e.g. Categories), useful when creating new records offline. We've done filtering that includes data from related entities with an always online counterpart by using Includes in a QueryDescriptor for some ViewModels that require FilterQuery/ViewQuery. But, since synchronization downloads data AppService.OnStart we need to customize its behavior to download or synchronize only the data that we need. Now, how do we do that with Crosslight's data synchronization APIs?

All times are GMT -5. The time now is 3:46 AM.
Previous Next