change view if there are no errors - InfoPath Dev
in

InfoPath Dev

change view if there are no errors

Last post 02-06-2009 05:29 AM by tylkomat. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-06-2009 04:51 AM

    change view if there are no errors

    Hallo there,

    I made a shop with different articles and some have a color to select and some don't. If an article has different colors you have to select one.

    If you click a button the view will be changed to a summary of the selected articles. I only want to let the view change if there are no errors on this view like that missing color.

    How can I do that ?

     

    Thanks in advance.

    Matthias

  • 02-06-2009 05:10 AM In reply to

    Re: change view if there are no errors

    Hi,

    Write the following code in the button click event.

    If(thisXDocument.Errors.Count == 0)

    {

              thisXDocument.View.SwitchView("viewName");

    }

    Swathip
    www.ggktech.com
  • 02-06-2009 05:29 AM In reply to

    Re: change view if there are no errors

    Thanks for the tip, but I don't have a XDocument object. I work with c#

     

    ah i found it.

    if(this.Errors.Count == 0){

    this.ViewInfos.SwitchView("viewName");

    }

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