Question

  Asked: Apr 24 2008   5:13 PM GMT
  Asked by: Domino Ask The Experts


Using Formula language to read an environment value


Formula Language, Lotus Notes

I am trying to read an environment value to use in my select, but it doesn't seem to be working. How can I get the value from my notes.ini file and use it in my view selection? Here is the code I'm using:

envViewArchived := @Environment("envViewArchived";

SELECT (@If(envViewArchived = "1";@Contains(Form; "Investigation") & Archived = "1";
@Contains(Form; "Investigation") & Archived = "0"))

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



You cannot get an environmental variable from a selection criteria. Please define you business requirement so we can help you find a viable solution. From what I can tell, you are not using environmental variables for their intended purpose.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Lotus Domino.

Looking for relevant Lotus Domino Whitepapers? Visit the SearchDomino.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Kmpgmr  |   Apr 28 2008  7:00PM GMT

Are you trying to set permissions to view specific documents using an environment variable? If so, you might reconsider when and how this variable is set. It might be better to use an ACL role, or group membership for the user.