Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: triggered in twice

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

triggered in twice
unkown 20.07.2006 07:57:02
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 ?

Re: triggered in twice
"madhur" <ahuja.madhur[ at ]gmail.com> 20.07.2006 09:25:38
Hi

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

Regards,

MAdhur

unkown wrote:

[Quoted Text]
> 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 ?

Re: triggered in twice
Ben Walters 20.07.2006 23:35:02
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

"madhur" wrote:

[Quoted Text]
> Hi
>
> I have also faced this issue sometimes. I am using Infopath 2007 beta
> 2.
> Are you using 2003 or 2007?
>
> Regards,
>
> MAdhur
>
> unkown wrote:
>
> > 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 ?
>
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net