FolderURL Property

Microsoft Office InfoPath

A property that returns or sets a string that represents the Uniform Resource Locator (URL) to which the form will be submitted by the DAVAdapter object.

expression.FolderURL

expression    Required. An expression that returns a reference to the DAVAdapter object.

Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Remarks

The Submit method of the DAVAdapter object will fail if the value of the FolderURL property does not begin with either the "http:" or the "https:" prefix. The Submit method will also fail if the site specified by the FolderURL property is not available, or if the URL is not in the same security domain as the form template.

Note  This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

Example

This example shows how to use the FolderURL property of an instance of the DavAdapter object to change the folder to which the form data will be submitted:

objDavAdapter.FolderURL = objDavAdapter.FolderURL + "data/";