Is this a bug? session.getServerName returns nothing in the Notes client, but the full server name in the browser.
Can anyone confirm this - I’m using 8.5.1 FP2 client
Is this a bug? session.getServerName returns nothing in the Notes client, but the full server name in the browser.
Can anyone confirm this - I’m using 8.5.1 FP2 client
Subject: Working as designed
See the following note from Designer Help:This property is null if the session is not running on a server.
See also Vlad’s response on how to work around this issue.
Subject: Found it (again)
I think I’ve come across this before, but am only just starting to get into xPages
Using:
var db:NotesDatabase = session.getCurrentDatabase();
var ser:NotesName =session.createName(db.getServer());
returns the servername OK - still don’t know why getServerName won’t work though, if anyone can shed any light on this
Subject: database.getServer()
simply use: database.getServer();