FORMULA LANGUAGE


Examples: @Environment, @SetEnvironment, and ENVIRONMENT
1. This example returns 5, if that is the value of the variable $IEVersonMajor stored in the current user's notes.ini or Notes Preferences file.
2. This example places a variable called OrderNumber in the current user's notes.ini or Notes Preferences file, and assigns it a value of zero.
3. To save users time while completing Profile documents, you might want to automatically fill in an office location for them. You can create an editable text field called OfficeLocation. Its default formula is:
4. In addition to the OfficeLocation, you might want to use an environment variable to store a user's birthday. You can create an editable time field called Birthday. Its default formula is similar to the one used for OfficeLocation:
5. You want to generate sequential numbers on a per user basis, and you want to store the number in a field called OrderNumber. Define the field OrderNumber to be a Text data type; it must be some form of computed field. You can then write the following formula for the field.
6. This formula tests whether an environment variable called OrderNumber has been stored in the user's notes.ini or Notes Preferences file. If there is no such variable stored, @SetEnvironment initializes it to zero. If a value has already been stored, @Return returns it and stops the formula from executing.
7. Two agents are used to look up a list of possible group names that users might belong to, prompt the user to select one, and then enter that name in the Group field for all selected documents (which, in this case, pertain to the current user).
See Also