triggered in twice

U

unkown

I'm using onValidate to do my checking
however, when it triggered an event of onValidate
sometimes, It runs in twice of the event .. , but somtimes normal`
how can i prevent this case ? and y it has this case occur ?
 
M

madhur

Hi

I have also faced this issue sometimes. I am using Infopath 2007 beta
2.
Are you using 2003 or 2007?

Regards,

MAdhur
 
B

Ben Walters

Howdy,
The issue your experiencing here is common for both 2007 and 2003.
If you have a field with a valute of "5" and change that field to "90" 2 the
onChange event will fire once to delete the content and once to insert the
new value.
If you clear the field the onChage event will fire only once. You can use
the e.Operation property to determine which action is occuring and fire the
appropriate code based on this.

Hope this helps

Cheers
Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top