Setting document contents
It is equally easy to set document contents. Just use the at:put: protocol of your AbtLnNote instance. If you are not sure about the existence of a particular field, you can send the hasItem: message to the document.
As stated before, the fields in a document are typed. So if you put data into fields, be sure that you supply the proper data types. The at: method takes care of most of the necessary conversions.
Use the following classes to set the corresponding items:
Smalltalk Class
AbtLnItem
String
AbtLnItemText
Float
AbtLnItemNumber
String
AbtLnItemComposite
If you want to set an AbtLnItemTimeDate, the following parameters can be passed:
String - formatted in Domino time/date format
Date - the time component of AbtLnItemTimeDate is set to the current time
Time- the date component of AbtLnItemTimeDate is set to the current date
Array with: aDate and: aTime
AbtLnTimeDate
If you want to set any of the multiple value fields use the corresponding formats:
OrderedCollection of
AbtLnItem
String
AbtLnItemTextList
Float
AbtLnItemNumberRange
Time or Date
AbtLnTimeRange
Note:
Changes to field values become persistent only when a document is stored. Use the store method with your AbtLnNote instance to save the changes.
Note:
Domino Connection supports some additional field properties. Readers and Authors fields are maintained during read and write operations with the Smalltalk classes.
Last modified date: 01/29/2015