Copy/Clone a selected document to a new document including richtext field, e.g.

5 pts.
Tags:
LotusScript
How to copy/clone a selected document to a new document including richtext field, "Body", which has a DocLink and then put the new document in frount end edit mode

Software/Hardware used:
Lotus Designer 8.5.1
ASKED: October 27, 2011  4:08 PM
UPDATED: October 31, 2011  10:38 AM

Answer Wiki

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

It can be done with the form configuration. There is a setting in the form properties that says that any edits to a document should spawn a copy. the copy can then become the parent with all previous versions appearing as child documents.

See this topic in Help:
<b>Version tracking</b>
Version tracking allows you to maintain a history of changes to a document. In order to activate version tracking, you must designate the form used to create documents as a version-tracking form.

If you want more control than the form configuration, then you want to look at the Domino Designer help for these topics:
<b>NotesDocument Class</b>
<ul>
<li>CopyToDatabase</li><li>MakeResponse</li>
</ul>

Discuss This Question: 1  Reply

 
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
  • Edvabnik
    Here you are: Dim s As New NotesSession Dim w As New NotesUIWorkspace Dim UIDoc As NotesUIDocument Dim db As NotesDatabase Dim col As NotesDocumentCollection Dim doc As NotesDocument, NewDoc As NotesDocument Set db = s.CurrentDatabase Set col = db.UnprocessedDocuments Set doc = col.GetFirstDocument Set NewDoc = db.CreateDocument Call doc.CopyAllItems(NewDoc) Set UIDoc = w.EditDocument(True, NewDoc) Call UIDoc.Refresh
    75 pointsBadges:
    report

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