Data Validation using code - InfoPath Dev
in

InfoPath Dev

Data Validation using code

Last post 10-29-2008 02:37 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-26-2008 04:47 PM

    Data Validation using code

    My company has around 15,000 people and they are all spread out around the country and use different servers.  I am building a infopath form to collect data during the christmas period for statistical purpose. 

     Steps involved for data collection:

    1. Staff complete the infopath form and then send it via email to Head office. (following code used - XDocument.UI.ShowMailItem([email protected], "", "", "Daily Return", "As requested, please find the attached document.");)

    2. Head office opens the form and download the information into an access database. (Data connection is used)

     Problem:

    B'coz you can either create an email or database connection only, I am sending the email via code and download the information through database connection.  In step I am using the code to send the email, the data validation on the form does not work. 

     Question:

    Have you got any suggestion, How I can overcome this issue?

     

    Dave
  • 10-29-2008 02:37 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Data Validation using code

    Hello,

    If your code before send the email you have to check once below the condition to send the email.

    if(XDocument.Errors.Count > 0)

    {

    return;

    }

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