You can set different kinds of values for custom fields of objects that extend EnterpriseEntity. To set a value in a list custom field, you can enter a field name and the value using EnterpriseEntity methods, as shown in the following code:
record.setBooleanFieldValue(fieldName, true); record.setLookupFieldValue(categoryTreePosition, fieldName, "ITEM"); |
In the following code sample, you can set the value of the memo field OtherDistractions and use its category full tree position of CLAM_FEAT:
record.setMemoFieldValue("CLAM_FEAT", "OtherDistractions", "Claimant was reading a map."); |
For a complete sample, see the Checking and Setting Values in Custom Fields of Type List sample.