Data could not get committed to Forms Liabrary on button click event - InfoPath Dev
in

InfoPath Dev

Data could not get committed to Forms Liabrary on button click event

Last post 06-20-2008 04:03 AM by mehtavipulk. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-20-2008 04:03 AM

    Data could not get committed to Forms Liabrary on button click event

    Hi,

     

    On my button click event (using VSTA) I explicitly set values to one of my InfoPath fields (which I do not display on my form). But the InfoPath does not commit that data to the forms library. I implemented below code to modify a field on button click event & submit it to Forms Library

     

    private void SetFormField(XPathNavigator xPath, string xPathExpr, string value)
    {
      xPath.SelectSingleNode(xPathExpr, NamespaceManager).SetValue(value);

    }


    SetFormField(xPath, "/my:myFields/my:Field1", "1");

     

    The value/data "1" does not get committed to Forms Library

     

    While submitting the data using VSTA, do I need to do set some properties to explicityly commit data back to forms library?

     

     Regards,

    Vipul Mehta

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