Share via


2.2.108 editWith

The editWith element specifies an instance of a control that edits data in the form file.

Parent Elements

xmlToEdit

Child Elements

fragmentToInsert

masterDetail

Attributes:

allowedFileTypes: This attribute MUST be ignored.

autoComplete: This attribute specifies whether auto-completion of fields is on. If this attribute is not present, its value MUST be interpreted as "no".

caption: This attribute specifies an identifier for alternate forms of XML data to be used in the control. If this attribute is not present, its value MUST be interpreted as an empty string (1).

component: This attribute specifies the name of the control that is referenced by an instance of the xmlToEdit element (section 2.2.124).

component: This attribute specifies the name of the control that is referenced by an instance of the xmlToEdit element. The specified value MUST be one of the following:

  • xCollection: A repeating section control, as specified in section 2.4.1.15, or a repeating table control, as specified in section 2.4.1.16.

  • xOptional: An optional section control, as specified in section 2.4.1.18.

  • xReplace: This value MUST be ignored.

  • xTextList: This value MUST be ignored.

  • xField: Maps to one of the following controls:

    • Check Box control, as specified in section 2.4.1.6.

    • Date Picker control, as specified in section 2.4.1.8.

    • Drop-down list control, as specified in section 2.4.1.9.

    • List Box control, as specified in section 2.4.1.13.

    • Option Button control, as specified in section 2.4.1.14.

    • Rich Text  Box control, as specified in section 2.4.1.17.

    • Text Box control, as specified in section 2.4.1.20.

  • xImage: This value MUST be ignored.

  • xFileAttachment: A file attachment control, as specified in section 2.4.1.11.

field: This attribute MUST be ignored.

filterDependency: This attribute MUST be ignored.

maxLength:  This attribute MUST be ignored.

proofing:  This attribute MUST be ignored.

removeAncestors:  This attribute MUST be ignored.

type: This attribute MUST be ignored if the specified value is not "rich". If the specified value is "rich", the following MUST be true:

  • If the xmlToEditExtension element (section 2.2.147.43) is present, both the excludeEmbeddedImages and allowLinkedImages attributes of the xmlToEditExtension element MUST be set to "yes".

  • Otherwise, the clientOnly attribute of the viewExtension element (section 2.2.147.42) that is parent of the xmlToEditExtension element (section 2.2.147.43) MUST be set to "no".

useFilter:  This attribute MUST be ignored.

widgetIcon:  This attribute MUST be ignored.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="editWith">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element ref="xsf:masterDetail" minOccurs="0" maxOccurs="1"/>
       <xsd:element ref="xsf:fragmentToInsert" minOccurs="0" maxOccurs="1"/>
     </xsd:sequence>
     <xsd:attribute name="component" use="required">
       <xsd:simpleType>
         <xsd:restriction base="xsd:NMTOKEN">
           <xsd:enumeration value="xCollection"/>
           <xsd:enumeration value="xOptional"/>
           <xsd:enumeration value="xReplace"/>
           <xsd:enumeration value="xTextList"/>
           <xsd:enumeration value="xField"/>
           <xsd:enumeration value="xImage"/>
           <xsd:enumeration value="xFileAttachment"/>
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
     <xsd:attribute name="caption" type="xsf:xdTitle" use="optional"/>
     <xsd:attribute name="autoComplete" type="xsf:xdYesNo" use="optional"/>
     <xsd:attribute name="proofing" type="xsf:xdYesNo" use="optional"/>
     <xsd:attribute name="type" use="optional">
       <xsd:simpleType>
         <xsd:restriction base="xsd:NMTOKEN">
           <xsd:enumeration value="plain"/>
           <xsd:enumeration value="formatted"/>
           <xsd:enumeration value="plainMultiline"/>
           <xsd:enumeration value="formattedMultiline"/>
           <xsd:enumeration value="rich"/>
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
     <xsd:attribute name="useFilter" use="optional">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="yes"/>
           <xsd:enumeration value="no"/>
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
     <xsd:attribute name="widgetIcon" use="optional">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="standard"/>
           <xsd:enumeration value="filter"/>
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
     <xsd:attribute name="filterDependency" type="xsd:string" use="optional"/>
     <xsd:attribute name="field" type="xsd:string" use="optional"/>
     <xsd:attribute name="removeAncestors" type="xsd:nonNegativeInteger" use="optional"/>
     <xsd:attribute name="maxLength" use="optional">
       <xsd:simpleType>
         <xsd:restriction base="xsd:integer">
           <xsd:minInclusive value="-1"/>
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
     <xsd:attribute name="allowedFileTypes" type="xsd:string" use="optional"/>
     <xsd:anyAttribute namespace="http://schemas.microsoft.com/office/infopath/2003" processContents="skip"/>
   </xsd:complexType>
 </xsd:element>