Copy a document using backend classes

125 pts.
Tags:
Lotus Domino 7.0.2
Lotus Notes Designer
Notes Designer
Notes Web Application
I have an agent that runs under a button in the form when the user click on the button I send the query to the backend agent to copy the document that was open and save it. I have used for example docB = docA to copy the document but this statement somehow removes the actual document that I tried to copy from. The docA is documentcontext. Do you anybody know of a class or workaround that keeep original document untouched but copy it to a new document. I am using designer 7.02. This is a web agent and I can't use uidoc, uiview and workspace.

Software/Hardware used:
Notes designer 7.02

Answer Wiki

Thanks. We'll let you know when a new response is added.

Try something like
Call docA.CopyAllItems( docB, True )

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following