fileName Element
Specifies the file name or an expression that returns a file name when the form is submitted using the davAdapter.
Type
xsd:complexType
Parent Elements
Element | Description |
---|---|
davAdapter | The parent element that contains all the information necessary to submit files to a server that is running Microsoft Windows SharePoint Services or a Web based Distributed Authoring and Versioning (WebDAV) server. |
Child Elements
None.
Attributes
Attribute | Type | Required | Description | Possible Values |
---|---|---|---|---|
value | xsd:string |
Yes | Contains the name of the file, once submitted to the server. | string |
valueType | xsf:xdExpressionLiteral |
No | Specifies whether the name of the file should be interpreted as an XPath expression or as a literal string. |
|
Definition
<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>
Remarks
The extension ".xml" is appended to the file name if a file name extension is not specified.
The following system reserved characters will be replaced by an underscore ("_") character when a form is submitted:
\ / : * ? " < > |
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 fileName element:
<xsf:fileName value="my:myFields/my:fileName" valueType="expression"/>