You can follow these steps:
Create a table that contains the list of dimensions that each user is allowed to select. This table should have a relationship with the User table.
Extend the DimLookup form control to add custom filtering logic. You can do this by extending the form where the DimLookup is used and adding your custom code.
In your custom code, retrieve the currently logged-in user and fetch the list of allowed dimension values based on their permissions.
Modify the query used by the DimLookup to include a filter using the list of allowed dimension values retrieved in step 3. This will ensure that only valid dimension values are displayed in the lookup.
Additionally, if you want to validate the dimension value entered by the user without relying solely on the lookup selection, you can implement additional validation logic. You can create an event handler or override the validate method on the form to perform the validation based on the allowed dimension values.
André Arnaud de Cal... 291,711 Super User 2024 Season 2
Martin Dráb 230,458 Most Valuable Professional
nmaenpaa 101,156