Permission Change in-form On the Fly?

XypherXypher Member Posts: 297
I have a Card form display details of a record in a table.

I'm curious, depending on a the value of one record, would I be able to deny or allow modification to this record (regardless of the user)?

Answers

  • Captain_DX4Captain_DX4 Member Posts: 230
    It can be done. You will place your code in the OnAfterGetRecord and/or OnAfterGetCurrRecord triggers of the form (perhaps create a new function and call that one function from both locations). You write your code to check the record. You can then use the CurrForm commands to allow/deny access to fields or the form.
    Kristopher Webb
    Microsoft Dynamics NAV Developer
Sign In or Register to comment.