Web server name in a Domino Web application

165 pts.
Tags:
Lotus Domino
Web application
How do I find out what the Domino server-name is in a Web application?
I have an application that runs on two servers - one for Notes access (which runs a lot of cool Notes things) and another for Web access (which does cool HTML things). I want to prevent people from running the Web app on the Notes-UI server and vice versa. The Notes server is an "update" server, and the Web server is a "reports" server. The app has different ACLs on the two servers. This allows some people - eg: IT staff - to have "Report Admin" roles for their staff on the "Web-access" server; and everyone - including those IT staff - to be individual updaters without those roles on the "Notes-access" server so that their data doesn't conflict with others'.
However, I am stuck putting an "error" message in the Web-interface because I don't know how to write an @Function to ask, in a Web environment, "What is my server name?".
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

@ServerName

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • AtishSanyal
    No; it only gives the URL-encoded Database File-path-and-name; not the server.
    165 pointsBadges:
    report
  • Stiletto
    @ServerName?
    5,545 pointsBadges:
    report
  • AtishSanyal
    @ServerName is always Local ("") for web-served databases.
    165 pointsBadges:
    report
  • AtishSanyal
    I lied! Stiletto is correct. @ServerName does return the server name which @Subset(@DBName; 1) does not.

    Thanks.
    165 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: