FormEvents_OnSwitchView not working in Infopath 2007 - InfoPath Dev
in

InfoPath Dev

FormEvents_OnSwitchView not working in Infopath 2007

Last post 11-05-2007 02:44 PM by Greg Collins. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-30-2007 12:54 PM

    FormEvents_OnSwitchView not working in Infopath 2007

    I have a form which I build in 2007, but it is compatible with 2003. I have some code in the FormEvents_OnSwitchView event. This code is triggered if I run the form in Infopath 2003, but it is not triggered if I run the form in 2007.

     Does anyone have an idea why this is happening?
     

    Collin Vermeulen
  • 10-30-2007 01:57 PM In reply to

    Re: FormEvents_OnSwitchView not working in Infopath 2007

    I have never had this happen. Try copying your switchview code to notepad, deleting the even handler, re-adding it from the designer, and the putting your code back in.

    Not that this SHOULD make a difference, but you never know. Stranger things have happened.

  • 11-03-2007 05:14 PM In reply to

    Re: FormEvents_OnSwitchView not working in Infopath 2007

    In the end that was the solution. Deleted the event and recreated it. Then copied the code piece by piece in it. It worked fine afterwards. The even trigger in 2003 and 2007.

     Thanks for your help.

    Collin Vermeulen
  • 11-05-2007 02:44 PM In reply to

    Re: FormEvents_OnSwitchView not working in Infopath 2007

    Great! Glad that worked for you. Not sure why your event handler was broken, but glad its fixed now!

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.