Validation on Fields in Repeating Table - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Validation on Fields in Repeating Table

Last post 04-19-2011 10:25 AM by bblanke. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-12-2011 07:56 AM

    • bblanke
    • Top 500 Contributor
      Male
    • Joined on 11-12-2009
    • Milwaukee, WI
    • Posts 32

    Validation on Fields in Repeating Table

    I have a validating event on a field in a repeating table. However, when you change the value for that field in a different row the validation only applies to the last field that was changed.


    public void cfname_Validating(object sender, XmlValidatingEventArgs e)
    {
    if (!Regex.IsMatch(e.NewValue, "[0-9A-Z]{8}.[A-Z]{3}") & GVar.stype == "File Conversion")
    e.ReportError(e.Site, true, "Invalid Filename Value");
    }

    How do I get it so that the validation shows for all rows?

    I'd prefer to do this through code as it's easier to maintain than the data validation in the gui.

    Brandon Blanke
    Technical Analyst / Quad Graphics
  • 04-19-2011 10:25 AM In reply to

    • bblanke
    • Top 500 Contributor
      Male
    • Joined on 11-12-2009
    • Milwaukee, WI
    • Posts 32

    Re: Validation on Fields in Repeating Table

    Still haven't been able to solve this on my own yet, does anyone else have any ideas to help me?
    Brandon Blanke
    Technical Analyst / Quad Graphics
Page 1 of 1 (2 items)
Copyright © 2003-2018 Qdabra Software. All rights reserved.
View our Terms of Use.