About secondary data sources

Microsoft Office InfoPath

Show All Show All

About secondary data sources

Microsoft Office InfoPath 2003 Service Pack 1 adds the ability to connect multiple data sources to a form simultaneously. Using multiple data sources in your forms allows you to build complex functionality such as lookup lists or offline data stores.

Main and secondary data sources

The main data source corresponds to the groups and fields containing the data that underlies the form and is saved as the form file.

A secondary data source is used to store data from additional data sources. Whenever a new data connection is created for retrieving data— for example, by using the Add button of the Data Connections dialog box— the retrieved data is not stored in the main data source but in a secondary data source. The secondary data source receives the data from any data connection used for querying, whether it is an XML document, a database, a Web service, or a SharePoint library or list.

The Data Source task pane displays the structure (groups and fields) of each data source, both main and secondary, and is used for binding groups or fields in the data source to controls in the form. When a user fills out the form, the controls display the data from the data source and allow it to be updated during editing.

New features for working with secondary data sources

The following sections describe the changes made to working with secondary data sources in InfoPath Service Pack 1.

ShowThe Data Connections dialog box

ShowData Source task pane

ShowFields and groups

ShowControls available for binding to secondary data sources