Make Doc Response on Paste

Is it possible to programmatically in PostPate or QuerPaste make the document (or documents if appropriate) in the clipboard a response to the currently selected document or documents.

Scenario is simply that users need to be able to copy and paste documents from one db to another en-mass and quickly make them responses to the relevant main documents in the second database.

Thanks.

Subject: Make Doc Response on Paste

Check this out:

http://www-10.lotus.com/ldd/today.nsf/738f673d4f30092885256658007aff98/112e0a1d0508dbc085256d4e0050adff?OpenDocument

Subject: Make Doc Response on Paste

Depends if you have the knowledge of how to set the $Ref field.

I don’t know enough about your application, but I’m sure that with a little practice you can stuff the doc.UniversalID from the main document into the $Ref field on the response document. This is what sets the document as a response.

Worst case, grab a document collection, and do a stampAll into the $Ref field. You will obviously have to do some practicing and “circling” to find the correct parent document for each response. That, you’ll have to do manually!

Come back if you need more help.

Marcus

Subject: RE: Make Doc Response on Paste

Thanks Marcus.

The issue I have is using the QueryPaste and PostPaste I seem to lose a handle on one of the documents. I am happy with the standard programmatic requirement to set $REF via script etc. but it is more the keeping a handle on both documents.

Subject: RE: Make Doc Response on Paste

If you are pasting a repsonse document onto another document it will automaticly update the $REF and make it a response. Just make sure that you are pasting on a document.

Subject: RE: Make Doc Response on Paste

Yes but the documents are not always responses some are Main Documents in the other database hence the requirement to get a handle on them programmatically to use the MakeResonse method.