Accessing external data sources

Microsoft Office InfoPath

Show All Show All

Accessing external data sources

When working with a Microsoft Office InfoPath 2003 form, you can write scripting code to access the form's secondary data sources, which are typically external to the primary data source of a form, and then manipulate the data that they contain. The InfoPath object model supports access to a form's external data sources through the use of the DataObject object in association with the DataObjects collection.

The InfoPath object model also provides a set of data adapter objects, containing information about the secondary data sources, and access to the data that they contain. The type of data adapter that is returned by the DataObject object depends on the type of data source that was selected when the secondary data source was created in design mode.

ShowOverview of the DataObjects collection

ShowOverview of the DataObject object

ShowOverview of the data adapter objects

ShowUsing the DataObjects collection and the DataObject object