Document 209694

Lotus Worldwide Technical Sales
How to Build Notes Components
Stefan Neth
Senior IT Specialist
© 2007 IBM Corporation
Lotus WTS Enablement
2007
Objectives
ƒ Understand the steps required in order
to build a Notes component using
Domino Designer 8
ƒ Understand inter-component
communication concept and background
Lotus WTS Enablement
2007
Prerequisites
ƒ It is assumed that you are familiar with
– Creating new Notes databases in the Lotus
Notes client.
– Using prior versions of Lotus Domino Designer
to modify Notes views, create simple Notes
forms,
– Using the Programmers pane to input Notes
formulas and LotusScript code
Lotus WTS Enablement
2007
Agenda
ƒ What is a Notes Component
ƒ Required Procedures to build a Notes
Component
ƒ Inter-Component Communication
– Concept and Background
– Publishing and Consuming Properties
– LotusScript API for Publishing and consuming
properties
ƒ Composite application-related LotusScript
APIs
Lotus WTS Enablement
2007
What is a Notes Component
ƒ Notes components are elements of a Lotus Notes
application surfaced in a composite application.
–
–
–
–
Views
Forms
Frameset
Documents or other design elements of a Notes
application
ƒ The Composite Application Editor feature is used to
surface Lotus Notes elements as components in a
composite application
ƒ A same Notes database can contain multiple components,
and those components can be used in multiple composite
applications.
Lotus WTS Enablement
2007
Elements of composite applications
ƒ Composite applications can consist of various combinations of
elements
– Rich client component types and application types
– Web client component types and application types
Lotus WTS Enablement
2007
Procedures to build a Notes Component
ƒ Create a new Notes database including Forms, View and
documents
ƒ Determine the properties the component will publish
ƒ Determine the actions the component will perform when it is
wired to the property of another component
ƒ Create and Import into the Notes Application the WSDL that
lists the actions and properties for the component.
ƒ Modify the NSF design elements (Forms, View, Document, or
Framesets) to link them to the defined properties and actions
Lotus WTS Enablement
2007
Additional methods for creating Notes-based Composite
Application
ƒ Create a new composite application from a Lotus Notes 8 application template.
– Create a new application based on the new Blank Composite Application template
– Use the Composite Application Editor to begin adding components to the application.
ƒ Create a new composite application in an existing Lotus Notes 8 application.
–
–
–
–
Open an existing Lotus Notes application in the Domino Designer 8.
Navigate to the Composite Applications - Applications view.
Click the New Blank CA button.
Open the Database Properties box and select the application launch options and set to Launch as
Composite Application.
– Save and exit from Domino Designer 8.
– You can now use the Composite Application Editor to begin adding components to the application.
ƒ Create a new composite application by importing an existing composite application
XML file into the Lotus Notes 8 application.
–
–
–
–
–
–
Open an existing Lotus Notes application in Domino Designer 8.
Navigate to the Composite Applications - Applications view.
Click the Import XML button.
Select the application launch options and set to Launch as Composite Application.
Save and exit from Domino Designer 8
You can now use the Composite Application Editor to begin adding components to the application.
Lotus WTS Enablement
2007
Inter-component communication concept and
background
ƒ A Composite applications is an assembly of multiple components
with on-the-glass aggregation. Purpose: keep the application
user focused on the business process, eliminating the need for
the application user to switch between applications or switch
between open windows.
ƒ To increase organizational productivity, components form causal
relationships with other components through properties and
actions.
ƒ A property broadcasts a value and an action consumes a value.
ƒ To insure consistent communicating both properties and actions
describe the type of value they broadcast or consume in a WSDL
file
Lotus WTS Enablement
2007
Composite application-related LotusScript APIs
ƒ LotusScript API for Publishing and consuming properties
– Notes 8 provides many new properties, methods, and classes in the LotusScript APIs to
publish and consume properties:
ƒ NotesSession
ƒ NotesSession.GetPropertyBroker([Namespace]): NotesPropertyBroker.
ƒ NotesPropertyBroker
ƒ NotesPropertyBroker.InputPropertyContext (property): NotesProperties
ƒ NotesPropertyBroker.Namespace (property): Default Namespace
NotesPropertyBroker.HasProperty(Name,[Namespace]):
ƒ NotesProperty
ƒ
ƒ
ƒ
ƒ
NotesPropertyBroker.GetPropertyValue(Name,[Namespace])
NotesPropertyBroker.SetPropertyValue(Name, Value, [Namespace])
NotesPropertyBroker.ClearProperty: purges any new or modified property
NotesPropertyBroker.Publish: publishes all new and modified properties.
Lotus WTS Enablement
2007
Summary
ƒ NSF components are elements of a Lotus Notes application surfaced in a
composite application
ƒ You can have components form causal relationships with other components
through properties and actions defined in WSDL file imported in Notes
Applicaion
ƒ A property broadcasts a value and an action consumes a value
ƒ For inter-component communication, each component references a WSDL
file that lists the properties and actions available in that component
ƒ When Notes applications are used as components, you also need to specify
the properties and actions in various design elements in the database that
reference the WSDL. Properties, actions, and types are defined in the WSDL
file
ƒ This release includes many new properties, methods, and classes in the
LotusScript APIs to broadcast and consume properties.