APPLICAZIONI COMPOSITE - PROGETTAZIONE E GESTIONE


Utilizzo di classi e API LotusScript nelle applicazioni composite
Le applicazioni composite in Lotus Notes possono impiegare numerosi nuovi metodi e proprietà dell'API LotusScript. Questi elementi sono descritti più completamente nella Guida IBM® Lotus® Domino(TM) Designer.

NotesSession

NotesPropertyBroker
NotesProperty
Nota Per informazioni sulle nuove classi, metodi e proprietà, vedere la sezione "Aggiornamenti della documentazione" delle note complementari e la Gudia di IBM® Lotus® Domino(TM) Designer.

Il formato del broker di proprietà (rispetto a LSX) è indicato di seguito:


Due API di esempio sono presentate di seguito. Altre possono essere trovate negli esempi hca.nsf e corpteam.nsf che sono stati forniti.

Nuova API LotusScript per pubblicare le proprietà

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

Nuova API LotusScript per recuperare le proprietà

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

Vedere anche