FormError MoveToParent() and disappeared asterisks - InfoPath Dev
in

InfoPath Dev

FormError MoveToParent() and disappeared asterisks

Last post 01-17-2013 11:35 PM by MatiasK. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-04-2013 05:52 AM

    FormError MoveToParent() and disappeared asterisks

    Hello all! This is my first post and I'm newbie with InfoPath but I'm learning new things all the time. =)

    I have following problem:
    I'm attempting to get error count inside group3. Group3 contains group1 with 2 textboxes and group2 with 2 textboxes. Code works just fine with InfoPath filler but when I publish it to SharePoint, and run form in browser it disables/hides all asterisk characters at form.

    Here is the code:

    XPathNavigator group = this.CreateNavigator().SelectSingleNode("/my:MyFields/my:group3", NamespaceManager);
    XPathNavigator errorParent;
    int error_count = 0;
    FormError[] systemErrors;

    systemErrors =

    this.Errors.GetErrors(FormErrorType.SystemGenerated);

     foreach (FormError err in systemErrors)
    {

    errorParent = err.Site;

    while (errorParent.MoveToParent())

    {

    if (errorParent.Name.Equals(group.Name))

    {

    error_count++;

    }

    }

    }

  • 01-17-2013 11:35 PM In reply to

    Re: FormError MoveToParent() and disappeared asterisks

    Has anyone tried to reproduce this issue?
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.