Navigation
User login
Blogs
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. You can see the demo and download the database here (.zip, 3Mb).
To fill in some missing features in this project, we've have added the following options to the NotesView2 template:
How to Fix a Multiline Comment in a Lotus Notes Application
If you are working on a web project and need to get a comment form with a multiline text field, you use the following field options:

and you might use the following Translation:
@Implode(@ThisValue;@NewLine)
The field looks like this:

When a user types in a comment without inserting a line break, you can easily get the field value after the document is submitted with
because, naturally, the field is shown in the HTML:
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:
set view = db.GetView("myView")
Dim doc As NotesDocument
call view.Refresh()
dim name as string
dim evaluation
evaluation = evaluate("@username")
name = evaluation(0)
Set doc = view .GetFirstDocument()
Do While Not doc Is Nothing
if doc.user(0) = name then
' some operations
end if
Set doc = view .GetNextDocument(doc)
loop
