I want to set up a Table with different Permission.
Example:
User 1 have all permissons for Custtable
User 2 only read
If User 2 open the Custtable, a Info log should appear with the message:"You have permissions to read and not to write"
How can I set up the system for this info?
*This post is locked for comments
You can use code like this:
if (new DictTable(tableNum(CustTable)).rights() == AccessType::View) { info("You have permissions…"); }
and invoke it from init() method of the form.
I'm new in the AX world. Do you have an example? Thank you
You can get user's permissions for a table by calling rights() method of DictTable class. Running the check in CustTable form and showing an infolog message should be trivial.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156