LOTUSSCRIPT/COM/OLE CLASSES
Sub Click(Source As Button) Dim s As New NotesSession Dim workspace As New NotesUIWorkspace If workspace.IsEmbeddedInsideWCT Then Dim pb As NotesPropertyBroker Set pb = s.GetPropertyBroker("com.ibm.compositeapps.samples") Dim pbInputProperty As NotesProperty Dim pbContext As Variant 'retrieves array of input NotesProperties 'only first member of array is populated in this release 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) Dim uidoc As NotesUIDocument Set uidoc = workspace.CurrentDocument Call uidoc.FieldSetText("propvalue",cName$) Call uidoc.Save Else Messagebox "Wrong Configuration", MB_OK, "Basic Configuration" End If End Sub