Hi,
I would like to perform contextual validation in a custom context. Specifically when the user moves focus from a control (check that bound properties rules and show an error if any of them are violated).
I reviewed the documentation on contextual validation, but after reading it, it is not clear to me how I would go about this task.
Is there an example that I can look at?
Thanks,
Mark
We have closed this ticket because another page addresses its subject:
Validation - Check validation rules when input focus changes
Hi Mark,
Thank you for the question.
Please see a similar issue for more information on how your task can be accomplished: ID Q90810 (Where or How to Validate Custom Logon Parameters).
I have also included my sample project in the attachment. Please let me know in case of any difficulty.
Thanks
Dennis
Hi Dennis,
Thank you for the information.
Two questions:
(The reason for #2 is as follows, say I have a simple program that calculates the area of a rectangle. The user is asked to enter a width and a height, when the user enters the width and tabs to the height the validation procedure is tripped and the height property shows an "error" however, I believe this is not accurate as the user has not had an opportunity to enter a height so I want to see the requiredRule trigger for height if the user tabs out and leaves it empty (or 0 or whatever).)
Thanks,
Mark
Hi Mark,
Thank you for the report. We are working on this issue and will post our answer as soon as possible.
Thanks
Dennis
Hi Mark,
Please track them to be automatically notified when their statuses are changed.
Thank you for your patience,
Dennis
Hi Dennis,
Thank you.
Would you be able to provide me some guidance as to how I can manually access the error controller (one that shows the x beside a control) such that I can show an error to the user without using the validation module?
Thanks,
Mark
Hi Mark,
Thank you for the feedback.
Please check the following issues in our Support Center, for samples illustrating how to accomplish your task:
ID Q96517 (property editor control doesn't show error provider icon
ID Q90810 (Where or How to Validate Custom Logon Parameters
Please let me know if this makes sense.
Thanks
Dennis
Hi Dennis,
Thank you for the information. Now I get it.
Thanks,
Mark
You are welcome, Mark!