Inherit all fields into document

When creating a response document, it is possible to enable the inheriting of fields from the parent to the child. Is it possible to call this manually? What I want is to create an empty document, and then press a button which inherits values from fields in a different document (in a different database) into computed fields with the same name.

I can do it all manually, but this would save a lot of time…

Subject: Inherit all fields into document

I think that something like the following would work:

Dim ws as new notesuiworkspace

Dim childdoc as notesdocument

set childdoc = ws.currentdocument.document

Dim s as new notessession

Dim db as new notesdatabase

Dim parentdoc as notesdocument

set db = s.currentdatabase

set parentdoc = db.getDocumentByUnid(childdoc.parentDocumentunid)

call parentdoc.copyallitems(childdoc)

HTH

kiers

Subject: RE: Inherit all fields into document

Excellent, I didn’t know of this method, but its exactly what I want!

Thanks! :slight_smile: