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 6444 times by 1855 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 8925 times by 2561 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 5605 times by 1531 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 8488 times by 2218 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 5511 times by 1738 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 7915 times by 2629 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 7182 times by 2230 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 7878 times by 2182 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 7688 times by 2202 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 5696 times by 1465 viewers