Share via


offline Element

Specifies how the form template behaves when working offline.

Usage

  
<offline
	openIfQueryFails="xsf:xdYesNo"
	cacheQueries="xsf:xdYesNo"
	expirationTime="xsd:nonNegativeInteger"
/>

Element Information

Element type xsd:complexType
Namespace xsf2

Elements and Attributes

Parent Elements

Element Description
solutionDefinition Root element for the elements defined in the xsf2 namespace. Specifies new properties and features that have been added to Microsoft Office InfoPath 2007 form templates.

Child Elements

None.

Attributes

Attribute Type Required Description Possible Values
openIfQueryFails xdYesNo Optional Specifies whether the offline form should still open if the query fails.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String
cacheQueries xdYesNo Optional Specifies whether to cache data returned from queries so that it can be used when the form template is in Offline Mode.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String
expirationTime xsd:nonNegativeInteger Optional Specifies how long cache data is available for use in Offline Mode. If not present, data never expires.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
Integer

Definition

  
<xsd:element name="offline">
   <xsd:complexType>
      <xsd:attribute name="openIfQueryFails" type="xsf:xdYesNo" default="no" use="optional" />
      <xsd:attribute name="cacheQueries" type="xsf:xdYesNo" default="no" use="optional" />
      <xsd:attribute name="expirationTime" type="xsd:nonNegativeInteger" use="optional" />
      <xsd:anyAttribute processContents="skip" />
    </xsd:complexType>
</xsd:element>

Remarks

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.