Using LotusScript in Domino 7 Applications (N7D54)
Lotus Domino Release 8
Dates Offered:
11/3/2009 - 11/5/2009
3/9/2010 - 3/11/2010

Audience:The target audience for Using LotusScript® in IBM® Lotus® Domino® 7 Applications is application developers who will be using LotusScript in their Domino applications.


Description:Students will learn the techniques of programming in LotusScript while they learn to access and work with objects in the Domino Object Model. This workshop starts by introducing students to the LotusScript language. Students learn to retrieve database properties, use NotesDatabase methods, and navigate the Document Object Model to access ACL classes. The course continuously reinforces how to navigate the Document Object Model as students learn to work with front-end and back-end classes. Students are introduced to error checking and the LotusScript debugger early in the course so that they use it throughout the course.


Prerequisites:For Domino Developers:
  • Fundamentals of Domino 7 Application Development class (N7D510), or
  • Developing IBM Lotus Domino 6 Applications: Foundation Skills class (ND510)
  • or equivalent knowledge and skills


Duration:3 days


Objectives:Upon successful completion of this course, students will be able to:
  • Write LotusScript code that navigates the Domino Object Model and retrieves object data.
  • Write LotusScript code that modifies and adds data in Domino applications.
  • Select the best mechanism for executing LotusScript code.
  • Use the LotusScript debugger and error trapping to debug code.
  • Use Script Libraries to re-use code efficiently


Topics Covered:
MODULE A: Using LotusScript to Access and Modify Databases

Lesson 1: Introducing LotusScript
Introducing LotusScript
Declaring Variables in Lotus Script
Assigning Variables in LotusScript
Commenting Code
Using the LotusScript Debugger

Lesson 2: Accessing Database Information
Exploring the Domino Objects
Creating Objects in LotusScript
Accessing Object Properties
Adding Simple Error Checking to Code
Accessing the Current Database
Creating a database based on another database

Lesson 3: Navigating the User Interface Classes
Retrieving the Access Level of an ACL Entry

MODULE B: Navigating the User Interface Classes

Lesson 4: Working with Notes UI Workspace
Programming the Notes User Interface
Adding a Database to the Workspace
Gathering User Input

Lesson 5: Working with Notes UI Document
Accessing the Current Document
Composing a New Document with LotusScript
Retrieving Field Values from the Current Document
Changing Field Values on the Current Document
Accessing the Current Document Through Notes UI Document Events

MODULE C: Creating and Modifying Documents

Lesson 6: Accessing Data in Documents
Accessing Documents with LotusScript
Retrieving Documents Properties
Retrieving Item Values from a Document
Looping Through Documents in a View
Accessing Data Directly from the View

Lesson 7: Writing Data to Documents
Adding and Replacing Items
Saving the Document
Synchronizing with the User Interface
Adding Author and Reader Items
Creating New Documents

MODULE C: Creating and Modifying Documents (cont.)

Lesson 8: Using ViewEntry and Document Collections
Building Arrays
Building Dynamic Arrays
Using the NotesViewEntry Collection Class
Using the NotesViewNavigator
Using the NotesDocument Collection Class

Lesson 9: Reusing Code
Defining the Scope of a Variable
Setting Global Variables
Building Functions
Building Sub-routines
Building Script Libraries
Using Script Libraries

Lesson 10: Processing Run-Time Errors
Processing Run-Time Errors
Processing Individual Errors



Cost:$1,500