What is our need:
When a user logs into the app all data written to and retrieved from the database needs to be unique to their tenant.
Where we are now:
Our app is going from the desktop client/server to the web. Data was physically separated by each client location so there was no need to add a specific identifier to their data in the database.
What we've considered:
We've considered unloading the clients' data into a file and then updating the DB tables with a tenant ID or something similar. Then reloading the data and having each user's login credentials connect them to their data and not another clients'.
Our question:
Is there another option besides the manual process I mentioned above or is it the only one available given the situation? Note, we began looking into dynamically setting the data source with the appeon workarounds.pbl however SQL Anywhere is not supported.
As always, any advice, tips, or suggestions, are appreciated.
Thanks Roland. Your method sounds brilliant in its simplicity. We'll check out this idea and see if it will work for us.
@Chris
Chris, I've read a few articles and seen a video or two warning us to avoid using the Dynamic Data Source connection option in AEM when possible. In short, can you describe or provide a link to an article that gives a safe way/example of how to use DDS?
In lieu of that, is there any disadvantage or downside to using Roland's method?
Whether you use Dynamic or Static DataSources, you can redirect your App's DB connection at run time (aka by Tenant) by using the "CacheName" parameter, as follows:
https://www.appeon.com/support/documents/appeon_online_help/2017/server_configuration_guide_for_net/Dynamic_transaction_object_to_connection_cache_mapping.html
HTH
Regards ... Chris