default Attribute
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

default Attribute

Office 2007

Specifies the name identifier of the view chosen to be the default view.

Type

xsd:string

Remarks

The default attribute is an optional attribute of the views element.

If not specified, the default view is the first view element found within the views element. This view is loaded when an Microsoft Office InfoPath 2007 is initially opened.

Bb230405.vs_note(en-us,office.12).gif  Note
In the case of forms that use ActiveX Data Objects (ADO) or a Web service as their primary data source, the default view is set by the initialView attribute in the processing instruction of the form's XML template file. This attribute cannot be changed while in design mode.

Example

The following is an example of the default attribute as it is used in the views element:

<xsf:views default="View">
   <xsf:view name="View" caption="View">
      <xsf:mainpane transform="view1.xsl"></xsf:mainpane>
      ...
   </xsf:view>
</xsf:views>


Show:
© 2016 Microsoft