There is a possible way for that but it is not very comfortable for the developer :whistle:
Place a MenuButton somewhere on the form, create the MenuItems "Copy", "Paste" (and "Cut") and set the corresponding ShortCuts (Ctrl+C, Ctrl+V, Ctrl+X).
Now, you move the MenuButton behind another control (e. g. other Buttons or behind the list box or ...). Do not disable or hide the MenuButton by property because then the Shortcut will be ignored.
Due to the missing Code behind the MenuItems, the system will do nothing.
(Edit:) This must be done on each form where you want to disable copy & paste.
I have the opposite problem you had. There are some forms that do not allow the user to copy from or paste into. We are doing an upgrade from Nav 3.10 to Nav 4.0 and in some situations for assigning serial numbers, they have been able to copy/paste records. In 4.0 this does not appear to be possible. Can I enable this functionality. I couldn't find how it had been disabled.
I checked the PasteIsValid property and it is set to YES. I am looking to assign Item Tracking lines from the Item Journal when there is a Negative and a Positive Adjustment. For the Neg. Adj., they drill down and select a Serial No. for each part. In Nav 3.10 they were then able to copy all the assigned Serial No.s, go to the Positive Adj line, drill down and paste them into the Item Tracking lines which is based on the Tracking Specification table in Nav 4.0. This table has the PasteIsValid property set to Yes already and it still does not seem to be allowed. The Paste is even enabled on the right mouse click. There is a global variable InsertIsBlocked which I tried disabling, but that didn't seem work either, unless I missed one of the assignments somewhere.
If you have any other suggestions, I'd appreciate them.
Than may be the problem is that the form is working over temporary table... the insert action call OnInsert of the table and data are inserted by C/AL code...
I sent this "AllowCopy" property request 2 years ago and it was accepted with "in some future version"... :-)
Does anybody know, if this property will be available in one of the next versions?!? I certainly mean nearby future and not somewhere, sometimes, somehow ... ;-)
I talked about that with the MS developers and it seems, like they are working on it. I assume that Nav 5 will have something like that, but I am not sure about that...
Comments
What is the reason you want to do this?
i know they can still write it down, but it will be more difficult to get them all.
---
My Blog: http://NAV-Magno.be
You can try use the property Focusable on some fields or list forms, but this also makes editing and lookup/drill down impossible.
---
My Blog: http://NAV-Magno.be
Place a MenuButton somewhere on the form, create the MenuItems "Copy", "Paste" (and "Cut") and set the corresponding ShortCuts (Ctrl+C, Ctrl+V, Ctrl+X).
Now, you move the MenuButton behind another control (e. g. other Buttons or behind the list box or ...). Do not disable or hide the MenuButton by property because then the Shortcut will be ignored.
Due to the missing Code behind the MenuItems, the system will do nothing.
(Edit:) This must be done on each form where you want to disable copy & paste.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
it still copies/Cuts on ctrl+c/ctrl+x
(i have version 3.70B)
---
My Blog: http://NAV-Magno.be
I sent this "AllowCopy" property request 2 years ago and it was accepted with "in some future version"... :-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
---
My Blog: http://NAV-Magno.be
Thanks!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
If you have any other suggestions, I'd appreciate them.
Thanks!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Does anybody know, if this property will be available in one of the next versions?!? I certainly mean nearby future and not somewhere, sometimes, somehow ... ;-)
Ciao,
JR
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.