Hello
NAV 4.1
Created a form with a Menu Option Button. As default, the form opens in Readonly mode. User clicks the Menu button and chooses an option "Enable/Disable Edit". This toggles the form between Readonly and Write modes.
If the user has the form in Write mode, and then moves to a different record, I would like the form to automatically revert to ReadOnly mode. I tried to achieve this by adding some code to the OnAfterGetCurrentRecord() to set the form to ReadOnly. The problem is that the OnAfterGetCurrentRecord() Trigger fires after the user presses the Menu Option Button and sets the form to Write Only.....so it automatically sets the form back to ReadOnly (so can never get into Write mode).
Any ideas how I can achieve what I'm after?
Thanks, Simon
0
Comments