2 Users can create new Purchase Order.
How to prevent User A to edit Purchase Order created by User B using AL Code
User A can only view User B's PO.
2 Users can create new Purchase Order.
How to prevent User A to edit Purchase Order created by User B using AL Code
User A can only view User B's PO.
Great. Keep learning and Thank you.
I found a code that lock Edit and Delete:
CurrPage.Editable(false);
You can throw error if other user is trying to modify the document as well using ERROR('You are not allowed to modify this document.');
Thanks Yadav,
I will try your suggestion.
Do you know which Action of Edit button ?
I try to set Enabled= false for it.
Please use OnBeforeModify trigger
Hi Yadav,
I don't know what trigger or method should be used to lock editing the page so I have not written the code.
Did you try any code? what error are you facing?
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,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156