davAdapter Element
Contains information to enable InfoPath forms to be submitted to a server running Microsoft Windows SharePoint Services or to a Web-based Distributed Authoring and Versioning (WebDAV) server.
Type
xsd:complexType
Child Elements
Element | Description |
---|---|
folderURL | Contains the Uniform Resource Locator (URL) of the server to which the file is submitted. |
fileName | Contains the name of the file as a literal string or XPath expression. |
Attributes
Attribute | Type | Required | Description | Possible Values |
---|---|---|---|---|
name | xdTitle |
Yes | The name of the adapter. Used when invoking the davAdapter from code. | minLength = 1 maxLength = 255 pattern = ([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))? |
overwriteAllowed | xdYesNo |
No | Specifies whether the adapter can overwrite an existing file. |
|
queryAllowed | xdYesNo |
No | Specifies whether the adapter can be used for querying the data source. Omitted for the davAdapter, corresponding to a default value of "no". |
|
submitAllowed | xdYesNo |
No | Specifies whether the adapter can be used for submitting to the data source. Always set to "yes" for the davAdapter. |
|
Definition
<xsd:element name="davAdapter" >
<xsd:complexType>
<xsd:all>
<xsd:element name="folderURL">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="fileName">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="valueType" type="xsf:xdExpressionLiteral" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:all>
<xsd:attribute name="name" type="xsf:xdTitle" use="required"></xsd:attribute>
<xsd:attribute name="overwriteAllowed" type="xsf:xdYesNo" use="optional"></xsd:attribute>
<xsd:attribute name="queryAllowed" type="xsf:xdYesNo" use="optional"></xsd:attribute>
<xsd:attribute name="submitAllowed" type="xsf:xdYesNo" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
Remarks
Note This item 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 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.
Example
The following is an example of the davAdapter element:
<xsf:davAdapter name="SubmitToSharePoint" overwriteAllowed="yes" submitAllowed="yes">
<xsf:fileName value="my:myFields/my:fileName" valueType="expression"/>
<xsf:folderURL value="http://some_server/some_doc_lib"/>
</xsf:davAdapter>