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 7411 times by 2100 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 10156 times by 2888 viewers
Starting with version 5.03 of the Notes API, the ability to refresh the design of a database through the API has been exposed. The API call, in its most basic form, is surprisingly easy to use in LotusScript. This tip shows you how to do it.
Read more…
Viewed 6436 times by 1720 viewers
Yes, I know the title of this tip doesn’t mean much. But I couldn’t come up with a meaningful title in just a few words. So let me describe the situation. Let’s say you have a multi-value keyword fields that contains state names. And another multi-value keyword field that contains city names. The choices for the city names come from the selected state names. If you choose some cities, and then go back and remove a state, how do you eliminate those selected cities that are no longer choices?
Read more…
Viewed 9811 times by 2545 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 6251 times by 1957 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 9146 times by 2980 viewers
Many of you are aware of the built-in sort function for sorting JavaScript arrays. But you might not realize the true power of this function. This tip will talk about how this built-in function can be used to sort multi-dimensional arrays.
Read more…
Viewed 8191 times by 2500 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 9094 times by 2488 viewers
Lotus Notes Web – This code was found on a Visual Basic web site and converted to LotusScript. It is a LotusScript class that allows you to convert a host name to its IP address. To use, create a new HostName object.
Then check the IPAddress property of the new object to get the IP address. The property is a string.
This code is best stored in a script library. Create a new script library, then go to the (Declarations) section. The first part of that section is some constants:
Read more…
Viewed 8813 times by 2472 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 6577 times by 1686 viewers