Course Code: ND6LSL2
Course Title: Intermediate LotusScript for Notes Domino 6
Units: 16
Duration: 4 classroom equivalent days
Discussion Access: 4 months1
1. Up to 12 months access when purchased as part of a Curriculum Package.
Summary Description
TLCC’s Intermediate LotusScript for Notes Domino 6 course builds upon the techniques learned in the Beginner LotusScript course. This course will expand your understanding and mastery of the LotusScript programming language and the Domino Object Interface. Learn how to control the user interface by using front end classes such as NotesUIWorkspace, NotesUIDocument and NotesUIDatabase. Build user dialogs and prompts with EditDocument, Prompt and PickList. Manipulate information in fields. Work with doc links, attachments and embedded objects. Learn to add text to a rich text field using different text styles, sizes, colors and fonts. Discover several ways to gather and process groups of documents using various search techniques such as full text searches. Use the NotesViewNavigator, NotesViewEntryCollection, and NotesViewEntry classes to work with Notes views and folders. Enhance your applications by adding powerful reporting functions to create reports that go beyond the capabilities of standard Notes views. Generate and send memos and other documents using the Notes mail system and the NotesNewsletter class. Many real life demonstrations and activities will reinforce your learning and provide hands-on practice to make you a LotusScript expert!
Audience and Prerequisites
The recommended prerequisites are:
- TLCC's Notes Domino 6 Application Development 1 course or equivalent experience
- TLCC's Beginner LotusScript for Notes Domino 6 course or equivalent experience
System Requirements
A single Notes 6 and Domino Designer 6 client. Access to the Internet is required to get instructor support.
Course Modules
Module 1 - Accessing Front-End Objects
This module describes and demonstrates ways to access and manipulate front-end objects, such as the current database and the current view.
- Review the Pseudo-code Diagram Methodology and how to use it to solve problems using LotusScript and the Notes Object Interface.
- Learn about the NotesUIWorkspace class and how to use it to open a database.
- Learn to use the front-end database events.
- Learn how to access the current view from the workspace.
- Learn to use the front-end view events.
- Learn how to access the back-end database and view objects from their front-end objects.
- Learn techniques for creating and accessing a front-end document object.
Module 2 - Displaying Notes Dialogs and Prompts
This module focuses on the different ways to present a dialog to the application user.
- Learn to use the Prompt method of the NotesUIWorkspace class.
- Use the PickList methods to return string values and document collections from a view in a PickList dialog.
- Learn to use the DialogBox method to display information from the current document in a dialog window.
- Learn how to display the Open File dialog window.
Module 3 - Working with Notes Items and Rich Text Fields
This module focuses on techniques for creating and operating on NotesItem and NotesRichTextItem objects.
- Learn the NotesDocument methods to operate on items in a Notes document.
- Learn the properties and methods of the NotesItem class.
- Learn the properties and methods of the NotesRichTextItem class.
- Use NotesRichTextItem to add rich text data to a document.
- Learn how to work with embedded objects and file attachments in a rich text field.
- Learn to use the NotesRichTextStyle class to create and apply a rich text style.
- Learn to use the NotesRichTextParagraphStyle class to create and apply a rich text paragraph style.
Module 4 - Gathering Document Collections
The ability to gather document collections in LotusScript is one of the most useful capabilities of the language. Many of the Notes classes provide properties and methods that you can use for this purpose. Notes provides several searching techniques that return a collection of documents. Both of the Search and UnprocessedSearch methods of the NotesDatabase class return collections based on a focused search criteria. These methods rank among the most useful collection gathering techniques.
- Learn about the NotesDocumentCollection class and its properties and methods.
- Learn the different ways to navigate a document collection.
- Learn how to gather a collection of response documents.
- Learn how to gather a collection of unprocessed documents for operation by an agent or view action.
- Learn to use the GetAllDocumentsByKey method of the NotesView class.
- Learn to use the Search, UnprocessedSearch, FTSearch, and UnprocessedFTSearch methods of the NotesDatabase class.
- Learn how to reduce a collection with the FTSearch method of the NotesDocumentCollection class.
- Learn how to gather a collection of Profile documents.
Module 5 - Processing Document Collections
This module describes and demonstrates the techniques for navigating and processing a NotesDocumentCollection.
- Learn to use the StampAll method for mass updates.
- Learn how to unconditionally process an unprocessed document collection using the UpdateAll method.
- Learn how to conditionally process an unprocessed document collection using the UpdateProcessedDoc method of the NotesSession class.
- Learn to use the PutAllInFolder and RemoveAllFromFolder methods.
- Learn how to add a document to a collection and how to remove a document from a collection.
- Learn to use the RemoveAll method for mass deletions.
Module 6 - Working with View Entries
The NotesViewEntryCollection object can be used to access the entries and information contained in a Notes view. This module features techniques for gathering and processing information using the NotesViewNavigator, NotesViewEntryCollection, and NotesViewEntry classes.
- Learn to use the properties and methods in the NotesViewEntry class.
- Learn how to gather a collection of view entries from a Notes view.
- Learn how to navigate and process a collection on view entries.
- Learn the different methods to create a NotesViewNavigator object.
- Learn to use the navigational methods in the NotesViewNavigator class.
Module 7 - Adding Reports to Your Applications
Reports come in many types and styles. They are a basic function that can enhance almost any application. This module describes the need for reports, the different reporting styles, and how to add reports to your application.
- Understand the need for reporting in Notes applications.
- Understand the requirements for structured data when creating reports.
- Distinguish the several reporting characteristics and styles, including periodic, on-demand, and ad-hoc reports.
- Learn how to use views as a report design tool.
- Understand the limitations for using views for reports.
- Learn the three basic steps required to produce a report.
- Distinguish criteria from summary reports.
- Learn how to use dynamic tables as a versatile reporting structure.
- Define and use field value arrays.
- Define and use summary arrays.
- Learn how to use the List aggregate data structure in a reporting function.
- Learn how to generate a criteria report.
- Learn how to generate a summary report.
- Learn how to generate a sorted report.
Module 8 - Generating Newsletters and Mail
This module features techniques for generating memos and using the NotesNewsletter class.
- Understand how Notes mail works.
- Understand the Send and Share workflow models.
- Learn how to use LotusScript methods to send a document via Notes mail.
- Learn how to use LotusScript methods to send notification messages.
- Learn how to work with email addresses.
- Learn how to generate a Notes Newsletter memo.
- Learn how to generate a Notes Newsletter with a particular document's contents imported into it.