You can use the hook method wdDoBeforeAction of your view to do so. There you have access to iWdBeforeAction validation. You can use "validation.reportValidationError(attributes, message, args)" where "attributes" is a array of attributePointers. Your validation action has to have the checkbox "isValidating" checked ofcourse to trigger the wdDoBeforeAction.
Hope this helps.
Regards,
Tobias