Archive

Posts Tagged ‘LotusScript’

Create Replica Database by Lotus Script

In Lotus Notes Client, we can create new replica by manual but it was a lot of databases, decided to create a copy of our agents to run. But we are not a copy, a replica. We, NotesDatabase.CreateCopy method (it only copies the design) does not copy the documents found. Our method can not obtain a handle to all documents in the source database are copied to the destination database that could have been. But instead we had to use another approach.  Then we have a unique replica and create a new replica ID of the database decided to change. This creates a copy of the database.

Read more…

Viewed 22538 times by 7671 viewers

Lotus Notes IP Address Validation

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 7914 times by 2628 viewers

Lotus Notes Quickly Collect All Documents Techinque

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 8568 times by 2764 viewers

Use LotusScript Split/Join To Remove Entry From A List

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 9405 times by 3325 viewers

How to use LotusScript to filter Lotus Notes Email

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 10224 times by 3172 viewers