How can I determine users current location via script or formula?
You can access the current Location setting in the client notes.ini file by using LotusScript. The following line will set the variable mylocation to the value of the notes.ini setting 'Location' of the client that executes the code.
mylocation = session.GetEnvironmentString("Location", True)
The True flag at the end indicates that the exact name should be used (no $ is prefixed to the value). The location name of the current location document is the information to the left of the first comma.
Dig Deeper on Domino Resources - Part 3
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response. Continue Reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead. Continue Reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.