I have an Infopath form that is submitting to a database and SharePoint 2.0.
This form and process is well over a year old. I have been fighting a battle because SharePoint is timing out on our submits during heavy network traffic. Today I received an email that I need to change the submit to be code and to add XDocument.QueryAdapter.Timeout = 120; XDocument.QueryAdapter.Query(); to the submit code.
I have not written any code for this form in the past and I am really not sure where to start. I have been using rules and the two dataconnections to submit. So my questions are:
1. Is there somewhere to change this code without having to rework the submit process?
2. If not, What should the code look like, currently the code submits to an HTTP: address for SharePoint and to the "Main Connection" which is the database. The form is also autonamed on Sharepoint using the ConCat function:concat(@Customer_Legal_Name, @Date_Requested)
3. To submit to the database do we have to map each field back?
4. Is there code to submit using data connections and still be able to use the timeout settings above?
Any help would be greatly appreciated.