This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Is there any way to get the current ValidationRule that has triggered a ValidationError? I notice there is a AssociatedEntity on the ValidationError class which I can navigate back to the entity but I can't seem to get back to the rule.
-Thanks |
|
|
No, this isn't currently possible. We could add it (with some compatibility-related caveats) if there's a compelling use case -- what are you trying to achieve? |
|
|
As discussed more in this thread, I simply want to modify my UI based on the rule that has been broken. I can parse the text, but I'd like to be able to reuse these styles more - having the rule linked to error would allow me to process things more easily. |
|