In a DB i am developing, i need to copy selected documents to another DB by the Replica IDof that DB. Does anybody know if that’s possible and how would i do that? The option i am using now is a simple action that copies to the filename on servername.
In the same DB i want to prevent users from using the View, Go To… Menu item, so they cannot access
views they are not allowed to by browsing to it. How can i do that?
I have a DB made here with Swing and so on and changed some design elements of the Review Cycle.
Before i made the change, there where a lot of documents allready in the DB that don’t have those design changes because they where made with the old design form.
I have looked for the possibility to refresh the design of all documents and found 2 options (Refresh selected and Refresh All Documents) but that doesn’t do the trick
of refreshing those elements.
Is there another way to refresh the design of all those documents (even if i would have to copy the docs)
preventing i have to reinsert all (2000) documents?
Would be very greatfull if i could get an answer to those questions.
Subject: RE: 3 design questions i cannot find the solution to
Thanks for the reply1) I might look ignorant, but i don’t really understand the meaning of the script you wrote. I can see it opening a db by replica id, but i don’t see how i would automaticaly copy a selected document to it.
2)I see that preventing the opening of the view, but that’s not exactly it. I probably didnt’explain it too well. In an outline there are links to views people can open, but there are views some people are allowed to open and some are not. I want to prevent everyone to go to the menu View, Go To, so the outline isn’t broken.
Is solved. It wasn’t that the docs didn’t update, cause they did. There was a failure in the data. A lot of From fields wheren’t filled, so the review cycle didn’t run on those. I placed the data from the AltFrom field in the From field.
Subject: RE: 3 design questions i cannot find the solution to
Vijendra assumed you would know how to copy the documents, and just needed a way to locate the target database given its replica ID. To do the actual copying, you would need to get the collection of selected documents (Using the NotesDatabase.UnprocessedDocuments property, for instance, if this is a view action or an agent that runs on selected documents), and then iterate through the collection (NotesDocumentCollection.GetFirstDocument and .GetNextDocument), and inside the loop use NotesDocument.CopyToDatabase method to do the copying.
Do it the way Vijendra suggested. If users have no access to the view, it won’t show up in the View menu or Go To dialog for them.
WARNING: hiding a view is not an effective security measure no matter how you do it. To hide data from users, you must either limit their access to the documents using Readers fields, or keep them out of the database using the database ACL, or encrypt selected fields. Users can always create their own views (personal, desktop) that display all documents to which they have access.