Hi again,
I'm building a multi-tenant app and need suggestions on making sure tenant999's data stays with them and nowhere else using cursoradapters.
At startup I can figure out what tenant/systemID to use and then set it in a global var that lives the life of the session.
Would best practice be to always add the where clause: " where Table.SystemID = gcSystemID" to both stand-alone and DE based cursoradapters? Then, if any additional where clause needs to appended, then append it. There will be a few cursoradapters that will not use a where clause like one to a list of states or zipcodes.
If there are better ways, please say so...
Thanks,
Stanley
I'm building a multi-tenant app and need suggestions on making sure tenant999's data stays with them and nowhere else using cursoradapters.
At startup I can figure out what tenant/systemID to use and then set it in a global var that lives the life of the session.
Would best practice be to always add the where clause: " where Table.SystemID = gcSystemID" to both stand-alone and DE based cursoradapters? Then, if any additional where clause needs to appended, then append it. There will be a few cursoradapters that will not use a where clause like one to a list of states or zipcodes.
If there are better ways, please say so...
Thanks,
Stanley