Manage Learn to apply best practices and optimize your operations.

Copy A View From One Db To Another

Here is a click function that will allow you to copy a view ("test") in the
current database to another database ("copydb.nsf") using LotusScript.

Dim sess as New NotesSession
Dim db as NotesDatabase, db2 as NotesDatabase
Dim view as NotesView
Dim viewDoc as NotesDocument, viewDoc2 as NotesDocument

Set db = sess.CurrentDatabase
Set view = db.Getview("test")
viewid = view.UniversalID
viewDoc = db.GetDocumentByUNID(viewid)

Set db2 = sess.GetDatabase("", "copydb.nsf")
Set viewDoc2 = viewDoc.CopyToDatabase(db2)

Since design elements of a database (ie: views, forms, etc) are actually
documents, all you need to do is get the UNID and copy it as a regular
document.

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close