TMS Software Blog: Multi-tenant TMS WEB Core client applications with Firestore
Summary
If you were to develop this kind of Multi-tenant App directly in JavaScript that uses the Firestore API, you will need to devise your own scheme to keep each users data separate. property UserIdFieldName Suppose you want to connect to a pre-existing collection made by another app with the same scheme where the difference is that the user id field is not named uid but is userid. To connect to such a collection with the feature to view and maintain separate user data, what you need to do is additionally specify a field name to use instead of uid by using the property UserIdFieldName. To run the Demo and see the above features in action, you need to perform the following steps: • Enable the Email/Password Sign-In method in the authentication section of the Firebase console. In the next part of this series, we are going to take a look at the new Filtering features of the Firestore ClientDataSet component that would allow us to limit the data coming in and paginate it as needed.