@GetRemoteDBPathByRID
Syntax
@GetRemoteDBPathByRID(TEXTSERVERNAME;DBRID);
Description
On the server with the server name TEXT TEXTSERVERNAME the first DB with the replica ID RID DBRID is searched for and the Notes path (TEXT) to it is returned.
The found DB can be opened with this Notes path.
If no matching DB is found on the specified server, @Error is returned.
Example: @GetRemoteDBPathByRID(TEXTSERVERNAME;DBRID);
DBHANDLE1:=@OpenDB("TEST.NSF");
RID:=@GetDBReplicaInfo(DBHANDLE1;RID;FLAGS3;CUTOFFINTERVAL4;CUTOFFTD5);
NotesPath:=@GetRemoteDBPathByRID(SERVERNAME;RID);
IF(!@IsError(NotesPath))
{
@LogReport("DB FOUND !");
DBHANDLE2:=@OpenDB(NotesPath);
@LogReport(DBHANDLE2);
DBHANDLE2:=@CloseDB(DBHANDLE2);
}
DBHANDLE1:=@CloseDB(DBHANDLE1);
The local test DB "TEST.NSF" is opened.
The RID of this test DB is determined.
Auf dem Server "TEST_SERVER_2" the first DB with the RID RID gesucht und of the NotesPath auf diese to the variable NotesPath is assigned.
If NotesPath!=@Error is not @Error, the found replica of the test DB on server "TEST_SERVER_2" is opened and the DBHANDLE DBHANDLE2 to it is output.
The open DBs are then closed.
Note : This text was machine-translated and may contain inaccuracies.
