Managing LocalStoreage in MultiTenant Mobile App

hi

I am developing a MultiTenant Mobile App, but while managing local storage i have to delete all data first from local storage and then able to fetch daata from local storage.

If i didnt delete data then it shows datas of all tenants .

Is there any other way to manage local storage for multitenant mobile app. 

Hi Shivam,

Why in the first place would you load data for all tenants in the local database?

Your sync pattern should filter on tenant identifier of logged in user.

Regards,

Daniel

Daniël Kuhlmann wrote:

Hi Shivam,

Why in the first place would you load data for all tenants in the local database?

Your sync pattern should filter on tenant identifier of logged in user.

Regards,

Daniel


Hi Daniel

Thanks for replying

I am loading data in sync action i am only deleting local storage at login time.

I am just using ismultitenant =yes  for app level so i am not using tenant.id ,

so how can i sync data according to tenant at sync time , and if i not use that delete function at login time all data are loading

I am attaching my file can you please look into it

Hi Shivam,

I will have a look this evening, cannot do it during the day.

Regards,

Daniel

Hi Shivam,

I looked at your app, but there is no multi-tenant entity, there is no sync logic, so not a lot to comment on.

To come back to your original question, the only way to clear out all data in local database is by creating client action that calls the <Entity>DeleteAll client actions that are available for each entity.

Regards,

Daniel