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 259 times by 82 viewers
I’m sure you’ve developed applications where it was important to know how many documents meeting a certain criteria there were in the database. There are multiple ways of doing this, but here we’ll point out one you might not have thought of. It makes use of Notes built-in ability to handle view indexes with efficiency.
Read more…
Viewed 234 times by 77 viewers
Recently I was working with arrays in LotusScript. Each element of the list was a text string. I had a need to remove an element from the list. There are lots of different ways to do this, and here is one more.
Read more…
Viewed 269 times by 88 viewers
For this issue, Depending on what you are trying to do, you might be able to use the built-in mail rules or something like that. But there are two problems: Your organization might not allow use of rules, and rules might not do what you want. For example, rules cannot forward mail to another address. The most flexible approach, as always, is to write a LotusScript agent to do your bidding.
First, decide what type of agent to run. For example, in Lotus Notes you can choose to run a “before mail arrives” or “after new mail has arrived” agent.
Agent details aside, and not knowing exactly what you are trying to do, you most likely need to use the NotesDatabase.UnprocessedSearch method. Search and UnprocessedSearch are fabulously useful methods that let you select documents exactly the way you build a view: by using a selection formula.
Read more…
Viewed 300 times by 93 viewers