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 ...

Get Domino Designer 6: A Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.