Notes has provided access to the formula language in any text field. If you place a valid @-formula into a text field and press SHIFT+F9, the formula will be computed and the value for the text field replaced with the results of the formula.
Read more…
Viewed 7784 times by 2220 viewers
We were working on a web application recently. The application was to be used on the client’s server and had only one “foreground” agent (accessed through the ?OpenAgent URL). Since we wouldn’t have access to run agents on their server, the agent was set up to run as the current web user. The agent, when this setting is enabled, runs under the authority of the currently logged-on web user (or under “Anonymous” if the user hasn’t authenticated). Or so we thought…
Read more…
Viewed 6524 times by 1888 viewers
You Cannot Copy, Forward or Print a Form or Message in Lotus Notes You Have Created Even Though You Did Not Choose To Prevent This.
There are occasions when you are unable to forward, print or copy a message or form despite the fact that you have not chosen this option. How does this occur, and what are all the ways of adding the $KeepPrivate field to a document in order to discourage copying, printing and forwarding?
Read more…
Viewed 9028 times by 2598 viewers
When creating a new application recently, I was given a logo image by the customer to be included in the upper left corner of the application (it was a Notes client application). The customer wanted also to have the application name appear on top of the image.
Read more…
Viewed 5556 times by 1753 viewers
A co-developer recently had a list of document unique ID’s. He wanted to look up a value from each of the documents. His first thought was to use @GetDocField, as in @GetDocField(unidList; “Form”). (“Form” wasn’t the field he was looking up, but I’ll use it here as an example). @GetDocField only works on a single value, so it was only looking up the field from the first UNID in the list.
Read more…
Viewed 7552 times by 2450 viewers
We recently had a need on an intranet site to validate the format of IP addresses being entered. Remember that IP addresses must have 4 parts, separated by periods, and that each part must be in the range of 0 to 255. Also note that “000″ for a part would be valid, as would “0″.
Read more…
Viewed 7996 times by 2658 viewers
If you’ve been developing in Notes for any amount of time, one thing you’ve probably accumulated in your “bag of tricks” is an “Edit History” subform where the dates/times of the most recent edits are shown. Here, I’ll talk about our basic edit history subform. This is called “basic” because it only shows overall edits (who and when) instead of tracking changes to specific fields. Tracking changes to fields is a lot more involved, so I’ll leave that for another time.
Read more…
Viewed 7973 times by 2208 viewers
After using the Are Arrays Equal function in LotusScript for a while, a comment came from one of our developers: “This is good and all, but how do I know what is different about the two arrays?” The other function simply exits when finding a difference. So it makes sense to just keep track of the differences and then return those differences somehow. But there’s two types of differences:
Read more…
Viewed 5771 times by 1492 viewers
In a recent project, we had the need to compare two arrays to see if all the elements in one array were in the other array and vice versa. The elements didn’t have to appear in the same order in the arrays to be equal. So that prompted a generic “AreArraysEqual” function.
Read more…
Viewed 6401 times by 1960 viewers
I discovered something interesting that I thought I would share with everyone. It’s only applicable if you’re using your own OK/Cancel buttons in a dialog box (as opposed to the buttons that Notes generates). For those of you that don’t know, you can specify your own OK and Cancel buttons in a dialog box. All you have to do is add a hotspot button to your dialog box form/subform and choose “OK” or “Cancel” (there’s also one for “Help”) under the “Type” of button.
Read more…
Viewed 6031 times by 2128 viewers