Change the order of the Views - InfoPath Dev
in

InfoPath Dev

Change the order of the Views

Last post 01-08-2009 06:48 AM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-08-2009 05:59 AM

    • PhilipLuke
    • Not Ranked
    • Joined on 11-16-2006
    • United Kingdom
    • Posts 7

    Change the order of the Views

    Hi, I have an issue where I have created a single Infopath Form and 40 Views. When you create these views they seem to create their own display order (i.e. you cant INSERT a view between views, or move a VIEW up or down). Now, this is the problem, as I need to allow users to choose one of the views to enter data, but the view list is not being ordered as Accending/Decending Date/Time created etc, so it looks like a complete mess. I cannot see a way of ordering these views. I have tried creating a drop down combo box and then I was going to write a rule to say when the selected value in the drop down changes then change the view, but Change View is not available as a action at this level and is only at the Opening Form level. Has anyone else had this same problem and where you able to resolve it please?

    Thanks for any help.

    Regards

    Phil

  • 01-08-2009 06:48 AM In reply to

    Re: Change the order of the Views

    Hi,

    Write the following code line in the combo box in on after change event.

    If(thisXDocument.View != null)

    {

    String viewName = thisXDocument.selectSingleNode("xpath of combobox").text;

    thisXDocument.View.SwitchView(viewName);

    }

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