COMPOSITE APPLICATIONS - DESIGN AND MANAGEMENT


Using LotusScript classes and APIs in composite applications
Composite applications in Lotus Notes can employ several new LotusScript API methods and properties. These items are described more fully in the IBM® Lotus® Domino(TM) Designer help.

NotesSession

NotesPropertyBroker
NotesProperty
Note For information about the new classes, methods and properties, see the "Documentation updates" section of the release notes and the IBM® Lotus® Domino(TM) Designer help.

The property broker format (relative to LSX) is as below:


Two sample APIs are presented below. Others can be found in the supplied samples hca.nsf and corpteam.nsf.

New LotusScript API to publish properties

Sub Click(Source As Button)

Dim s As New NotesSession

...

Dim pb As NotesPropertyBroker

Set pb = s.GetPropertyBroker()

Call pb.setPropertyValue("Track", newTrack$)

Call pb.Publish()

...

End Sub

New LotusScript API to retrieve properties

Sub Click(Source As Button)

Dim s As New notessession

...

Dim pb As NotesPropertyBroker

Set pb = s.GetPropertyBroker()

Dim pbInputProperty As NotesProperty

Dim pbContext As Variant

pbContext = pb.InputPropertyContext

Set pbInputProperty = pbContext(0)

Dim InputPropertyName As String

Dim NameSpace As String  

InputPropertyName = pbInputProperty.Name

NameSpace = pbInputProperty.NameSpace

Dim pbValue As Variant

pbValue = pb.getPropertyValue(InputPropertyName,NameSpace)

cName$ = pbValue(0)

...

End Sub

See Also