How to append Date to field in Lotus Script?

I need to be able to append dates to a date field in a document. Is this possible in Lotus Script? Thanks!

Subject: How to append Date to field in Lotus Script?

use notesitem class to create an item object. Then set value of item to that field eg set item=notesdocument.getfirstitem(“fieldname”) . Then use appendtotextlist method of item to append other value.eg item.appendtotextlist(“heeelo”)

Subject: How to append Date to field in Lotus Script?

Hi Liza,

Just declare a notes date time item and append the new date.

Make sure the field you are appending should be multi value field(Check allow multiple values).

sample code:

Dim doc As NotesDocument

Dim item As NotesItem

’ …set value of doc…

Dim item As NotesItem

Dim dateTime As NotesDateTime

set dateTime= new notesdatetime(today)

Set dateTime = item.DateTimeValue

Set item = doc.GetFirstItem( “your field” )

while appending convert the value to date using

Call item.AppendToTextList( “new date” )

Call doc.Save( False, True )

please check the notes date time class in designer help.

I hope this helps. if you have any questions please let me know.

Cheers

RAJ