How to prevent copy from pages

james_csjames_cs Member Posts: 39
edited 2012-07-31 in NAV Three Tier
Hello.

Now that we can copy from page lists it is time to re-awaken a discussion that has been going on for years. What happens if you don't trust your staff and don't want them to be able to copy and paste from (eg - as is most common) the customer list.

Yes, I know. Wouldn't it be better if everyone could be trusted and you didn't have to worry about this. It would also be nice if we had world peace and everyone ate mom's apple pie.

Yes, I know. A data thief will find away. Just let's not give him too much of a helping hand.

With forms we could do something like this http://www.mibuso.com/forum/viewtopic.php?f=5&t=18740

In 2009 we could deny permissions to the style sheets and put in a blank style sheet for the customer list.

So how do we stop copy and paste from NAV 2013? There is no property on the page or table object and no permission for it. I have had a couple of installations where the implementation would have bounced had this not been possible so we will need to tackle this issue.

Comments

  • ufukufuk Member Posts: 514
    You can disable or clear clipboard before the required trigger or on a timely basis. In NAV, you can use following command with an appropriate trigger in page having a timer object or place it on single instance cdu and call it on appmgt codeunit :
    CREATE(WsShell);
    WsShell.Run('cmd.exe /c echo. >NUL  | clip',0,TRUE);
    CLEAR(WsShell);
    
    Ufuk Asci
    Pargesoft
  • james_csjames_cs Member Posts: 39
    Interesting idea Ufuk but I think there are a few problems.

    Firstly, if we are to use automations we have to allow the client to run them. The client has a chance to disable the automation.

    Next there is the trouble of which trigger to run it from. There is no OnDeactivateForm trigger for pages :(

    so I tried it in OnAfterGetRecord and OnAfterGetCurrRecord it mad the list really slow! Also, - and most importantly - it didn't work. :(

    Nice idea but I'm not sure this one will fly.
  • james_csjames_cs Member Posts: 39
    Could I just say how happy I am to see the return of copy and paste? I really missed it in 2009 - the style sheets really don't do it for me. It is nice to know that MS really listen to feedback. It's a really nice feature except when you don't want it.
  • ufukufuk Member Posts: 514
    james_cs wrote:
    Interesting idea Ufuk but I think there are a few problems.

    Firstly, if we are to use automations we have to allow the client to run them. The client has a chance to disable the automation.

    Next there is the trouble of which trigger to run it from. There is no OnDeactivateForm trigger for pages :(

    so I tried it in OnAfterGetRecord and OnAfterGetCurrRecord it mad the list really slow! Also, - and most importantly - it didn't work. :(

    Nice idea but I'm not sure this one will fly.

    In fact we've done this on Classic client and works properly. I haven't tested it on RTC but I suppose with some additional effort it can work on RTC. (Maybe using a timer automation for RTC will do this) Still, it is slow and not a favorable solution.

    I'm not sure about this. So, RTC is part of RMS and we can handle this using policies?
    Ufuk Asci
    Pargesoft
  • james_csjames_cs Member Posts: 39
    I think the RMS solution sounds right for this issue. I can't test it because I don't have a server and domain to test it on atm. It just sounds like the right solution for an environment where they are afraid of copy and paste. Thanks Mark.

    If anyone gets a chance to confirm this works then it would be good to know.
Sign In or Register to comment.