queryAllowed Attribute (emailAdapter Element)

Microsoft Office InfoPath

queryAllowed Attribute (emailAdapter Element)

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

Type

xsf:xdYesNo

Parent Elements

Element Description
emailAdapter Contains the information to submit an InfoPath file as an attachment to an e-mail message, with a specified set of recipients, a subject, and an introduction.

Definition

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

Remarks

The queryAllowed attribute is generally omitted for the emailAdapter element, corresponding to a default value of "no".

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 emailAdapter element:

    <xsf:emailAdapter name="Submit" submitAllowed="yes" queryAllowed="no">
 <xsf:to value="[email protected]" valueType="literal"/>
 <xsf:cc value="my:ccNames" valueType="expression"/>
 <xsf:bcc value="[email protected]" valueType="literal"/>
 <xsf:subject value="My report" valueType="literal"/>
 <xsf:intro value="See below"/>
 <xsf:attachmentFileName value="Status Report" valueType="literal"/>
</xsf:emailAdapter>