Stopping Copy and Paste, in Lotus Notes, selectivity in Views

Previously, I showed how to globally using formula language, at the database event level. I also mentioned how to allow some documents to be pasted in. (in the Notes Client)

What if you wish to just shut down copy and paste in a few views but not all? Maybe the views that some end users have ACL access to create documents, but you what other users to be able to create documents with copy and paste? (yech, but anyway)

in those views you wish to shut down, modify the Querypaste event :

1
2
3
4
Sub Querypaste(Source As Notesuiview, Continue As Variant)
    Messagebox "Copy and Paste is not allowed in this view.", 0+16, "Lotus Notes: "+ Source.View.Parent.Title
    Continue = False
End Sub

This will fire before the Global database (agent) event, which will not fire off.

side note : I recently modified the copy and paste agent to change if @userName was a member of a Role and if so the @return(”") (i.e. stop the agent). This allowed me as [dbadmin] to do copy and paste, just not anyone else!

This entry was posted in Lotus Domino, Show-n-Tell+Thursday. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
  • Follow

  • Archives (since 2003)

  • Categories

  • Recent Posts

  • Twitter Updates

    • I liked a YouTube video -- Recycle your unwanted electronics - City of Toronto http://youtu.be/91OXkMkesBc?a 13 hours ago
    • I'm organizing and coordinating my Japan Trip with Google Wave. Seeing both the promise and the fail. of the product. 18 hours ago
    • I have failed my saving Throw against Shiny ... I new 32G iPod Touch is on order :) 1 day ago
  • del.icio.us links

  • Flickr

    Hanging Gardens of KensingtonHanging Gardens of KensingtonMore Chocolate CakeMore Chocolate Cake
  •  

    July 2009
    M T W T F S S
    « Jun   Aug »
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Spam Blocked