How to show validation errors from Runtimemodifications
I am trying to validate textboxes on a form with the validation rules. The idea is to open a form with coordinates which are given to the workflow as arguments. These coordinates should be checked for correctness when the form is opened.
So I created a check in the RuntimeModifications of the workflow and do an InvokeMethod on the targetObject 'form' with the MethodName 'Validate'. This works. If one if the coordinates is wrong (for example a string instead of a number) I get the errors in the form.ValidationResults Collection, which I can iterate in a for each loop and get the error message I added to the validation of the textboxes.
Does anybody know how to show the errors from the form.ValidationResults in the validation area of the form?
Many thanks in advance for any help
With kind regards,
Luuk
0
-
Hi Luuk,
My hunch is that this might not be possible, since it sounds like you're hoping to run validation immediately on form generation, and the RuntimeModifications sequence is used to set up the form definition rather than to perform more dynamic actions,
Would you be able to paste the xaml for a simple example workflow with just the form-handling parts that you've described? I'd like to make sure we're looking at the same process before I can say for sure.
Thanks!
-Amanda0
Please sign in to leave a comment.
Comments
1 comment