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:
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 |