switching view on form load - InfoPath Dev
in

InfoPath Dev

switching view on form load

Last post 04-09-2009 08:55 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-09-2009 07:20 AM

    switching view on form load

    Hi,

    I am trying to use this.ViewInfos.SwitchView() to change the view in the EventManager.FormEvents.Loading event handler to something other than the default view in some circumstances.

    When the view switches, I get the following error:

    "The view my view name is not ready".

    I can then continue, but it shows me the default view. 

    What's wrong?  There seems to be no Loaded event so I can't see how else to do this :(

    Craig

  • 04-09-2009 08:55 AM In reply to

    Re: switching view on form load

    Are the "circumstances" you mention something you can check using a rule condition?  If so, just set a Form Load rule (in the form options) to switch to a different view under certain conditions.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.