Disable Copy

MagnoMagno Member Posts: 168
Is it possible to disable copy in Navision?
There are no bugs, only random undocumented features...
---
My Blog: http://NAV-Magno.be

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    I don't think it's possible, it is not a system-permission.

    What is the reason you want to do this?
  • MagnoMagno Member Posts: 168
    i don't want the users to be able to copy the customer/Vendor/other information.

    i know they can still write it down, but it will be more difficult to get them all.
    There are no bugs, only random undocumented features...
    ---
    My Blog: http://NAV-Magno.be
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    I don't think there is a waterproof solution for this issue.

    You can try use the property Focusable on some fields or list forms, but this also makes editing and lookup/drill down impossible.
  • MagnoMagno Member Posts: 168
    damn, that is to bad :(
    There are no bugs, only random undocumented features...
    ---
    My Blog: http://NAV-Magno.be
  • Timo_LässerTimo_Lässer Member Posts: 481
    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.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    This can be done, and it has crossed my mind, but the copying with the mouse buttons can still be done.
  • MagnoMagno Member Posts: 168
    hmz, just tried it, doesn't seem to work here...

    it still copies/Cuts on ctrl+c/ctrl+x
    (i have version 3.70B)
    There are no bugs, only random undocumented features...
    ---
    My Blog: http://NAV-Magno.be
  • kinekine Member Posts: 12,562
    You can use the Clipboard OCX (somewhere in the download) and clear the clipboard in OnTimer of the form...

    I sent this "AllowCopy" property request 2 years ago and it was accepted with "in some future version"... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Doesn't this disable the clipboard for all applications when navision is active? :-k
  • kinekine Member Posts: 12,562
    Yes, but only if you are on this form (for example on Customer List)... no another way now...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • MagnoMagno Member Posts: 168
    ok, thx for the suggestions
    There are no bugs, only random undocumented features...
    ---
    My Blog: http://NAV-Magno.be
  • BokkBokk Member Posts: 138
    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.

    Thanks!
    SGM
  • kinekine Member Posts: 12,562
    There is PasteIsValid property on table...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • BokkBokk Member Posts: 138
    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.

    Thanks!
    SGM
  • kinekine Member Posts: 12,562
    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...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • j.rj.r Member Posts: 3
    kine wrote:
    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 ... ;-)

    Ciao,
    JR
  • kinekine Member Posts: 12,562
    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...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.