Change View From Web Hosting Code - InfoPath Dev
in

InfoPath Dev

Change View From Web Hosting Code

Last post 09-16-2008 01:26 PM by Bhavesh. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-07-2008 12:36 PM

    Change View From Web Hosting Code

     Hi , I have a big trouble, is anyone knows how to change view from web hosting C# code ?

    My trouble is , I write a aspx page and using form control to embeded a infopath web form into my page, I write code when the form is loading to change the view ,like this

    formControl1.XmlForm.ViewInfos.SwitchView("view1");
    but it seems it did not work , and it said this feature is not supported when the web form loading.
    is there any other way to implement it, I want to : change the form view when the form is loading from the hosting web page using C# code.
    thanks a lot !
  • 09-16-2008 01:26 PM In reply to

    • Bhavesh
    • Top 500 Contributor
      Male
    • Joined on 05-01-2008
    • Atlanta
    • Posts 40

    Re: Change View From Web Hosting Code

    hi, 

    instead of switching a view programatically, you can keep the required view as the default view while designing an Infopath form and then embed it.

    not sure but might work for you.

    Bhavesh 

     

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