Special Considerations

There are several things to consider when implementing multi-tenancy, as it will change the way your application functions.

Firstly you should keep in mind that dropdowns will be limited to showing those items the user is permitted to see. For security reasons, the advanced 'Suppress Link Security' option is ignored in a multi-tenancy system. However you can easily make lists visible to all users by using the multi-select 'Add Org Units To Item' action discussed in the previous section.

Also keep in mind that your scripts may not have access to a record if it's not within what the user can access. If you think this may be a problem, you can put "elevate on" at the beginning of your script to ensure that the script runs with full permissions and isn't limited by any restrictions of the currently logged-in user. However, keep in mind that if you do this your script will have access to all records, regardless of the user's current org unit filters.

There may also be times you will need to control the Org Units for a record programmatically. You can do this in script by inserting records in the _OrgUnits sub-form, but this should always be done with "elevate on" set. You can also invoke the Add Org Units To Item action programmatically using the "run task" DbfScript statement.

Lastly, keep in mind that currently the Find functionality (the magnifying glass) does not provide a way to search items for specific org units. This is something we will hopefully add in the near future.


Next Topic:
v4.2.0.956 (beta)
Up Since 2/29/2024 12:02:23 AM