SetFieldValidate

This is a method with the following parameters:

  • string fieldName

  • UserExitFieldValidate userExit

UserExitFieldValidate has the following parameters.

  • IField field

  • IWorkdoc doc

  • ref bool valid

This method enables you to implement custom validation logic by registering a delegate of type UserExitFieldValidate for any field. This includes all standard fields as wall as any custom fields added to a project in Transformation Designer. You can access registered user exits for valid validation using GetFieldValidate.

Note Registering a user exit for a standard field using this method does the same thing as using one of the UserExitRegistry properties. For example, you can either assign your custom method for validating the InvoiceNumber field directly to the InvoiceNumberValidate property or you can call SetFieldValidate("InvoiceNumber", yourUserExit).

This user exit is available during validation processing only.