queryAllowed Attribute (davAdapter Element)

Microsoft Office InfoPath

Show All Show All

queryAllowed Attribute (davAdapter Element)

Specifies whether the adapter can be used for querying the data source.

Type

xsf:xdYesNo

Parent Elements

Element Description
davAdapter Contains information to enable InfoPath files to be submitted to a server that is running Microsoft Windows Sharepoint Services or a Web-based Distributed Authoring and Versioning (WebDAV) server.

Definition

    <xsd:attribute name="queryAllowed" type="xsf:xdYesNo" use="optional" ></xsd:attribute>
  

Remarks

The queryAllowed attribute is generally omitted for the davAdapter element, corresponding to a default value of "no". A value of "yes" for this attribute causes an error.

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 queryAllowed attribute as it is used in the davAdapter element:

    <xsf:davAdapter name="SubmitToSharePoint" overwriteAllowed="yes"
   submitAllowed="yes" queryAllowed="no">
 <xsf:fileName value="my:myFields/my:fileName" valueType="expression"/>
 <xsf:folderURL value="http://contoso/some_doc_lib"/>
</xsf:davAdapter>