How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible) - InfoPath Dev
in

InfoPath Dev

How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible)

Last post 11-01-2012 08:15 AM by Baskar. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-30-2012 01:45 PM

    • Baskar
    • Not Ranked
    • Joined on 10-30-2012
    • Posts 4

    How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible)

    I have created the browser compatible infopath form. Form has 3 different sections(have multiple controls) and one drop-down controls. Based on the drop-down selection I'm showing and hiding the different sections. I would like to create these three sections into three different views and based on drop-down selection i have to switch the views. I referred the below URL : http://spsfactory.blogspot.com/2006/08/switch-view-when-drop-down-list-has_13.html The article had below line. We will use the OnContextChange event (which is only enabled if you created a form without browser-compatible features). Can any one help me on the above problem. Thanks Baskar
  • 10-31-2012 10:37 AM In reply to

    Re: How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible)

    Have you considered just using the out of box rules to switch views?
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 11-01-2012 03:58 AM In reply to

    • Baskar
    • Not Ranked
    • Joined on 10-30-2012
    • Posts 4

    Re: How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible)

    yes, I will. But It should be compatible browser form. If you have solution please let me know.
  • 11-01-2012 07:58 AM In reply to

    Re: How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible)

    Unfortunately, the object model doesn't allow for view changes except on button clicks and form load ... with the exception of the context changed event work around you've already referenced. I do not believe there is a way to do this in a browser form.
    Hilary Stoupa

  • 11-01-2012 08:15 AM In reply to

    • Baskar
    • Not Ranked
    • Joined on 10-30-2012
    • Posts 4

    Re: How to programmatically switch the view in InfoPath form 2010? (It should be browser compatible)

    Hi Hilary Stoupa, Thanks for your advise. Right now I'm using rule to show or hide the sections in single view. I'm having another problem. Hope you will help on this. How to include the Person/Group picker in InfoPath form repeated section? I'm using external data source( from MS-SQL Server Database) to render the controls in repeated section. Note: I'm not using secondary data source from manage data connection. In infopath form code behind I'm retrieving the data from database and render the controls in InfoPath. Now I'm able to insert the Person/Group picker in repeated section. My problem is after entered the user id in person/group picker box and click on the user icon next to the box. Unable to set the user name (Display Name) to respective row. Can you please help me on this? Thank You Baskar
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.