SubmitToHostAdapter Object
InfoPath Developer Reference |
Represents a connection to the host environment. The SubmitToHostAdapter object is a type of Microsoft Office InfoPath 2007data adapter that contains all the information necessary for submitting data to a hosting environment.
Version Information
Version Added: InfoPath 2007
Remarks
The SubmitToHostAdapter allows form data to be submitted to a host enviroment, such as a custom Windows application or a Web application. When the InfoPath editor is hosted in a custom application, the SubmitToHostAdapter can be used to send validated, schema-conforming data to the custom application. For more information about hosting the InfoPath editor, see the MSDN articles Hosting the InfoPath 2007 Form Editing Environment in a Custom Windows Form Application and Hosting the InfoPath 2007 Form Editing Environment in a Custom Web Form.
Example
In the following example, a reference to the SubmitToHostAdapter object is set by passing the name of the SubmitToHostAdapter object to the Item property of the DataAdapters collection.
Note that submitting the underlying form data to the host environment is typically accomplished using the Submit method of the XDocument object instead of using a variable as shown in the example to submit data.
JScript |
---|
|
See Also