This rule checks the value of the specified field against its length as defined in object.xml. If the field value exceeds the length, the rule truncates the field to its actual length. The syntax for truncate is:
<truncate fieldName="name"/> |
The parameter for truncate is:
fieldName – The qualified field name or assigned variable for the field to check and to truncate if it is too long.
The following sample checks the lengths defined for the LastName, MaidenName, and MotherMN fields in object.xml. If any of these field values are found to be longer than the defined length, the value is truncated to the exact length defined in object.xml.
<rule> <truncate fieldName="Person.LastName"/> <truncate fieldName="Person.MaidenName"/> <truncate fieldName="Person.MotherMN"/> </rule> |