name Attribute (xmlToEdit Element)

Microsoft Office InfoPath

name Attribute (xmlToEdit Element)

Used in the xmlToEdit attribute of the button element to associate actions of the associated editing component to buttons defined in menus and toolbars.

Type

      xsd:NMTOKEN
    

Remarks

The name attribute is a required attribute of the xmlToEdit element.

There should be no more than one xmlToEdit element with the same name in a given view.

Example

The following is an example of the name attribute as it is used in the xmlToEdit element:

    <xsf:editing>
   <xsf:xmlToEdit name="CD_10"
      item="/CustomUISample/CDCollection/CD" 
      container="/CustomUISample">
      <xsf:editWith caption="CD"
         xd:autogeneration="template" 
         component="xCollection">
         <xsf:fragmentToInsert>
            <xsf:chooseFragment parent="CDCollection">
               <CD>
                  <Title></Title>
                  <Artist></Artist>
                  <Tracks>
                     <Track></Track>
                     <Track></Track>
                  </Tracks>
               </CD>
            </xsf:chooseFragment>
         </xsf:fragmentToInsert>
      </xsf:editWith>
   </xsf:xmlToEdit>
</xsf:editing>