Deploying InfoPath forms to different SharePoint servers

11,737

Solution 1

If I understand your scenario correctly:

You have an InfoPath form, with data connections that submit your data. You wish to deploy this form on multiple SharePoint Servers and have those data connections submit data to the currently deployed server.

You can't really get around needing to do work on every SharePoint server that you would want to deploy the form to. However, you can get around needing to modify the InfoPath Form Template.

If you use the SharePoint Data Connection Library (DCL), and create a UDC file from your data connection, on every SharePoint Server that you would want to use...then your InfoPath Template can just talk to the UDC file.

Here's a link to an article about integrating InfoPath with SharePoint's DCL:

http://msdn.microsoft.com/en-us/library/bb267335.aspx

Solution 2

If you go into the submit options, there is an option to perform custom action using rules. If you have all of the data connections set up, you can configure rules to select which connection to submit to.

Solution 3

re: speedfox's answer, try to stay away from editing the manifest whenever possible. It'll just lead to head aches.

If I understand your problem, you're deploying to multiple servers (DEV, UAT, Production) and need to edit the data connection manually every time you go from one environment to another? Forgive me if I've over simplified the problem

I've found the best way to make data connections site relative is to:

  1. Use data connection files in your form. Open the data connection wizard in infopath and for all of you data conencting click "Convert..." this changes your data connection from being embedded in the form to being an independant XML file. You'll need a Data Conenction Library on you sharepoint site to store these in. Create that in the browser.

  2. After you've converted and the connection go back into it and there will be a Connection Options... button use it to change from "Local data connection library" to "Centrally managed connection library"

  3. Upload the data connection that is in your sites Data Connection Library to central admin

  4. When you publish your form make sure you're publishing to a centrally managed location (Central Admin)

  5. Use your form as a content type in any forms library on that site collection.

  6. To use the form on another site, upload the data connection file to the new servers central admin and publish the (unchanged) form to the centrally managed forms.

Solution 4

See my blog post where I take you step-by-step with relevant snapshots covering the following:

a. Converting InfoPath Data Connections to DCL library in SharePoint. b. Publishing InfoPath form to a SharePoint List/Library c. Creating a .wsp solution package for the InfoPath form and its code-behind d. Creating a batch script that will deploy the InfoPath form on your Production site. e. Ensuring the InfoPath form has been deployed as a feature f. Modify the DCL's in the production environment. g. Associate the InfoPath Content Type with the Document/Forms Library

See the full blog post at: http://www.sharepointfix.com/2009/12/infopath-2007-form-and-nintex-workflows.html

Share:
11,737
Tundey
Author by

Tundey

Software engineer by day. Sports fan by night. Dad 24/7

Updated on June 14, 2022

Comments

  • Tundey
    Tundey about 2 years

    How do you manage deploying InfoPath forms to different sharepoint servers? Is there a better way to deal all the data connections being site-specific without opening the forms, editing the data connections and republishing for each environment?