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

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close