Lotus Notes Development

Filtering in Views Using LotusScript Code Made Easier

Filtering documents within a view in LotusScript straightforwardly can require quite a lot lines of code with various functions. However, by simple modular programming, you can use less functions in the code, making code more friendly and readable, thus reducing the chances to make a mistake, and increasing re-usability.

Here's the sample of straightforward code:

dim view as NotesView
set view = db.GetView("myView")
Dim doc As NotesDocument
call view.Refresh()
dim name as string
dim evaluation
evaluation = evaluate("@username")
name = evaluation(0)

Creating a Lotus Notes View with NotesView and AJAX

When we had to develop Lotus Views for the Web interfaces (a lot of times, of course), we needed something AJAXy. AJAX views for Domino were available for quite a while in Web Access mail template, but the code is practically not re-usable there. So, during our search efforts, we came across the brilliant project NotesView2 at openntf.org.

How to Fix a Multiline Comment in a Lotus Notes Application

If you are working on a web project (like a human resources web portal I am working on) and need to get a comment form with a multiline text field, you use the following field options:

Lotus web form field properties

and you might use the following Translation:

@Implode(@ThisValue;@NewLine)

The field looks like this:

Lotus web form field looks