Cmd

The Cmd attribute can be added to any tag for the purpose of removing that tag or changing it's position in the View's final XML

The five possible uses are:

Cmd="Remove" - removes the entity from the final XML
Cmd="First" - places the element first within the parent element
Cmd="Last" - places the element last within the parent element
Cmd="Before:Id" - places the element before the referenced element, for example: Cmd="Before:LastName"
Cmd="After:Id" - places the element after the referenced element, for example: Cmd="After:LastName"

Examples:
<Column Id="PreferredName" Name="Preferred Name" Type="VarChar" Length="255" Cmd="Remove"/>
<Column Id="Name" Name="Full Name" Type="VarChar" Cmd="First" />
<Column Id="FirstName" Name="First Name" Type="VarChar" Cmd="After:Name"/>
<Column Id="LastName" Name="Last Name" Type="VarChar" Cmd="Before:MiddleName"/>
<Column Id="MiddleName" Name="Middle Name" Type="VarChar" Cmd="Last"/>


Note:
  • The Document Map button in the View Editor provides a convenient way to remove fields and fieldsets from the View.  Click on the X button for the element.  A Cmd="Remove" is added to that element in the View Overlay.  The Document Map can not be used to replace elements that have been removed.  It is necessary to manually remove the  Cmd="Remove"  attribute from the element in the View Overlay
  • While adding and changing attributes will add to or change elements and attributes in the View Base, changing the position of elements will not change position of tags in the View Base.  It is necessary to use the Cmd attribute to change the position of elements.
  • When a new custom field is added, by default it will be placed as the final element within the parent element, regardless of it's position in the View Overlay.  It is necessary to add a Cmd attribute to change its position within the parent element.