O'Reilly logo

Domino Designer 6: A Developer’s Handbook by Gustavo Pecly, Grant McCarthy, Pekka Hartikainen, Andre Guirard, Rune Carlsen, Tommi Tulisalo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.3. Programming with LotusScript

When you program in Domino, you write your LotusScript code to affect Domino objects. Your code is executed by the occurrence of an event to the objects (such as clicking a button, opening a document, closing a document, or entering data in a field). Using the Objects view, you can easily see the events that are available for an object.

For example, you can write a very simple script for an object such as a button, as follows:

Sub Click( Source As Button )
   MessageBox( "I'm learning LotusScript!" )
End Sub

This script just shows a message box when you click the button.

14.3.1. The Event model

Each programmable object in Domino has a list of associated events that it responds to; for example, a button responds ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required