Given a server name and a replica ID, opens the specified
database, if it exists.
Parameter |
Description |
server |
The name of the server on which the database
resides. Use null to indicate a database on the current computer. |
replicaid |
The replica ID of the database that you want
to open. |
Return value |
Description |
true |
indicates that the replica was found and opened |
false |
indicates that the replica was not found on
the server, or could not be opened |
Examples
This button sees if a replica of the
current database exists on a server.
try {
var db:NotesDatabase = session.getDatabase(null, null);
var server:string = "Slapper/Acme";
var id:string = database.getReplicaID();
if (db.openByReplicaID(server, id)) {
requestScope.status = "Replica of current database exists on Slapper"
+ "\nFilepath = " + db.getFilePath();
} else {
requestScope.status = "No replica of current database on Slapper";
}
} catch(e) {
requestScope.status = e.toString();
}