Creates a replica of the current database at a new location.
Parameter | Description |
---|---|
server | The name of the server where the replica will reside. Specify null or an empty string ("") to create a replica on the current computer. |
dbfile | The file name of the replica. |
Return value | Description |
---|---|
NotesDatabase | The new replica. |
The new replica has the same access control list as the current database.
Programs running on a client can access several different servers in a single program.
var db:NotesDatabase = session.getDatabase("notes1/west", "test/DatabaseEtc");
var title:string = db.getTitle();
var replica:NotesDatabase = db.createReplica(null, "dbetc");
requestScope.status = "Database \"" + title + "\" has a new local replica";
CreateReplica method in LotusScript® NotesDatabase class
createReplica method in Java™ Database class
FileNewReplica @command of formula language