Xpage : how to open a database by replaica ID?

Hello,

Because the various replicas of our applications may not be on the same directory, we have to get databases by replica IDs (via tables)

I’m now working with XPages…

So, I have to retrieve the path or the url of the database via replica ID.

I tried something but it doesn’t work (javascript):

var db = new NotesDatabase;

db.openByReplicaID (“”, “my replicaid”);

db.getNotesURL();

etc.

=> new NotesDatabase seems to be forbidden

var db = database;

db.openByReplicaID (“”, “my replicaid”);

db.getNotesURL();

etc.

=> Error on openByReplicaID

I tried to use server!!__replicaid.nsf but it doesn’t work…

Any idea

Thanks in advance

Pierre Frappé

Subject: Re OpenByReplicaID

I had a look in the designer help and it mentions instantiating the db:NotesDatabase variable by using session.getDatabase(null, null). Have you tried that?

Subject: Thanks : it works ! (eom)