Best practice Local storage entities in core module or mobile application module

Best practice Local storage entities in core module or mobile application module

  

Hi everyone,


At the moment i'm working on a mobile application in OutSystems. I wonder what is best practice when it comes to creating Local Storage entities. Should i create these in my core module that I also use for creating Database entities, or should i create these Local Storage Entities in my mobile application module?

Solution

Hi Jordi,

I would say that local storage are much closer to the frontend and therefore you should put them in the mobile module. Think of this you have a core entity mapping to Opportunities for instance, which has a bunch of attributes. While for one specific mobile app you might just need the opportunity name, amount and a couple of FKs for another mobile app you might need a different set of attributes depending on the offline use case.

I hope this helps,

Cheers

Solution

Hi André,

Thank you for your response. Your explanation sounds good and logical to me.