When you add a data connection to your form that receives data from a Windows SharePoint Services site, Microsoft Office InfoPath 2003 creates a secondary data source for your form. This data source lets you populate list boxes with values from the site, and bind controls to the fields and groups associated with the site. In general, you can work with the secondary data source in many of the same ways that you work with your form's primary data source.
Note The values associated with a secondary data source cannot be saved when a user fills out a form, although they can be submitted to a Web service using a submit data connection. In addition, you cannot edit the properties or structure of the fields and groups associated with a secondary data source, nor can you specify default values or custom, noncode-based data validation for those fields.
- In design mode, click Data Connections on the Tools menu.
- In the Data Connections dialog box, click Add.
- In the Data Connection Wizard, click Receive data, and then click Next.
- On the next page of the wizard, click SharePoint library or list, and then click Next.
- On the next page of the wizard, type the location of the Windows SharePoint Services form library or list you want to connect to, and then click Next.
- If requested, click the list or library that you want to use in the Select a list or library box, and then click Next.
- On the next page of the wizard, select the check boxes whose values you want to receive, and then click Next.
- On the next page of the wizard, type a name for the data connection.
- If you want to automatically receive data whenever the form is opened by a user, select the Automatically retrieve data when form is opened check box, and then click Finish.
Note If the form does not automatically receive data, you may want to insert a button that retrieves the data when clicked.
Submit data to a Windows SharePoint Services form library
- In design mode, click Data Connections on the Tools menu.
- In the Data Connections dialog box, click Add.
- In the Data Connection Wizard, click Submit data, and then click Next.
- On the next page of the wizard, click To a SharePoint form library, and then click Next.
- In the SharePoint form library box on the next page of the wizard, type the location of the Windows SharePoint Services form library you want to submit data to.
Note You must type the location of the form library itself, rather than a site within the form library. For example, use the format http://yourserver/yoursite/ instead of http://yourserver/yoursite/forms/AllItems.aspx.
- In the File name box, type the name that the form will have when it is submitted to the form library. To specify a name that is based on a value in the form, click Insert Formula , and then use the options in the Insert Formula dialog box to add a formula.
Note Basing a name on a formula may prevent duplicate file names from overwriting each other in the form library.
- To overwrite a file in the form library if it has the same name as the submitted file, select the Allow overwrite if file exists check box.
- Click Next.
- On the next page of the wizard, type a name for the data connection, and then click Finish.
Note The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more