Xpage DBlookup to another server

I am trying to do a dblookup to my names.nsf database on another server.

I cannot get the dblookup to work on one server but I can when the db is on the other server.

Cant find anything on doing dblookups where you can specify the server.

Subject: @DbLookup on another server

The usual first parameter of @DbLookup, @DbName(), has server and path in it. However, my understanding from XPages courses last year was that it’s not possible to access a database on a different server. I’m not aware that that has changed, but if anyone has successfully accessed another server with an @DbLookup, please post, because it’s useful to know if it’s possible.

Subject: Here you go :slight_smile:

I’ve been doing this since 8.5 and everything seems to work well with it and it’s still working on 8.5.1. The key is making an array with the servername and the database (I’m not 100% sure if there’s another way to do this as I’ve not gone on any XPage training myself.).

Javascript:

var db1 = new Array(serverName,dbName);

@DbLookup(db1,view,key,column)

My version being used is slightly different through applicationScope variables (as I have a fair few of these and I don’t want to keep declaring the same thing again and again) but this is the idea and should work.

Hopefully this will give me some good karma for the day and help me get over some of my own XPage issues.