How to move documents from one copy of a database to another with new design elements?

Hello all:I have a new version of a database,I need to move archived documents from old database to the new one all design elements look different but they have the same names my documents are header detail linked with the id of header documents,I tried copying and pasting documents from one view to another but I could only get header documents but no details appear although they are in the database

if any one could help me

thanks

Dalia

Subject: how to move documents from one copy of a database to another with new design elements?

“Header detail linked” is not a precise enough term for me to be able to tell what you are doing. How are the documents related to each other?

If these are main documents and response documents, copy and paste should work. But you must copy all the documents, not just the header documents. Responses aren’t copied automatically without your asking for it.

Subject: RE: how to move documents from one copy of a database to another with new design elements?

Hi,

Do your “header” and “detail” documents relates by the following rule:

Header: fld_DocUNID = Doc.UniversalID

Detail: fld_DetailDocUNID = DetailDoc.UniversalID

    fld_HeaderUNID = fld_DocUNID

If you do so, you make an effort to build an well-related DB object based on Domino Database.

In some cases, we also use this model. When you copy a document from an old database to a new database, your document is assigned a new UniversalID. So, the detail document cannot link to the header document by:

Set headerDoc = Db.GetDocumentByUNID(detailDoc.fld_HeaderUNID(0))

This is the cause of that problem!

Hope to see your success to solve it

Good luck!

nhatnamnv@yahoo.com