.

HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1 212-599-2048

Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development

Facebook Twitter YouTube
Chat now       
.
ProductsDownloadsNewsAbout usContact


Need a Domino Consultant? Call NotesMail +1 212-599-2048 - HCLSoftware Business Partner

LOTUSSCRIPT/COM/OLE CLASSES


Examples: FieldClear method
This script appends the contents of the LatestEvent field, preceded by three dashes, to the History field, before the document is saved. The LatestEvent field is cleared so that another event can be entered into it.

Sub Querysave(Source As Notesuidocument, Continue As Variant)
 Dim lastEvent As String
 lastEvent = source.FieldGetText( "LatestEvent" )
 Call source.FieldAppendText( "History", "---" )
 Call source.FieldAppendText( "History", lastEvent )
 Call source.FieldClear( "LatestEvent" )
End Sub

After the document has been edited and saved three times, the History field might look like this:

---Aerial photographs of deforestation published---Government reacts---Public protests began today

See Also