5 pts.
 Database server and domain
I am developing an XPages workflow application which needs to send email notifications with a clickable URL link to the current document. The application may be run on a Notes client or on a Web browser. For the URL link to work, it must contain the name of the server along with its top level domain name. Our Web server is called SAUSSW.org. When the document is created on a Web browser, context.getUrl().getHost() returns "saussw.org," which is what is needed. In the Notes client, however, this function returns "127.0.0.1" the IP address of the local host. Using @Name("[CN]",@Subset(@DbName(),1)) returns "SAUSSW" without the '.org." I know there is a way in JavaScript to get the complete server name, including domain, from a Notes client. Unfortunately, I can't find the code I used to do this before. Can anyone help?

Software/Hardware used:
XPages 8.5.3
ASKED: June 8, 2012  6:54 PM
UPDATED: June 8, 2012  7:03 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _