Design Mode Properties
This section of the XSF file contains optional design mode properties.
applicationParameters
The applicationParameters element is an optional child of xDocumentClass. It contains the optional solutionProperties element. See Figure 4-14.
Figure 4-14: The applicationParameters content model.
The required application attribute identifies the name of the application used to design the InfoPath form. The value must be “InfoPath Design Mode”.
<xsf:xDocumentClass>
<xsf:applicationParameters application="InfoPath Design Mode">
.
.
</xsf:applicationParameters>
</xsf:xDocumentClass>
solutionProperties
The optional solutionProperties element specifies how a form should be used in design mode. All the attributes are optional.allowCustomization indicates whether the form can be modified or customized. Allowed values are “yes” (default) and “no”. If it is set to “no”, the Design the Form toolbar button is disabled. If the user tries to modify the form template, a warning message is displayed. This attribute corresponds to the Enable Protection option on the General tab of the Form Options dialog box.
automaticallyCreateNodes indicates whether XML nodes will be automatically generated when controls are inserted in the view in design mode. It corresponds to the Automatically create data source option on the Controls task pane. If you are customizing a sample form or have specified an existing schema, this option is disabled in the user interface.fullyEditableNamespace contains the namespace URI and location URL of the schema in the form template that can be entirely modified in design mode.lastOpenView gives the name of the view that was open when the form was last in design mode.If a script is used to upgrade form instances to conform to a new version of the template, the lastVersion NeedingTransform attribute is used to store the value contained in the maxToVersionUpgrade attribute in the useTransform element.scriptLanguage contains the name of the scripting language of the form.
<xsf:applicationParameters application="InfoPath Design Mode">
<xsf:solutionProperties
allowCustomization="no"
automaticallyCreateNodes="no"
fullyEditableNamespace="urn:names?pace1:mynames"/>
lastOpenView="view1"
lastVersionNeedingTransform="1.1.0.10"
scriptLanguage="JScript"
</xsf:applicationParameters>