REORDERFIELDS Method
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Changes the order in which fields in a SharePoint list are displayed in the data entry form for the list.
<Method ID="Text">
<SetList Scope="Request">GUID</SetList>
<SetVar Name="Cmd">REORDERFIELDS</SetVar>
<SetVar Name="ReorderedFields"><Fields>
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
</Fields>
</SetVar>
<SetVar Name="owshiddenversion">Integer</SetVar>
</Method>
Parameters
Parameter |
Description |
---|---|
ID = "Text" |
Application-specific string. In an HTML editor compatible with Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007, the string provides the sequence number and name of the method. |
Scope = "Request" |
When set to Request, the Scope attribute sets the variable for the scope of the enclosing Method element, unless the variable is changed by another tag. |
Name = "Cmd" |
Must be set to REORDERFIELDS. |
Name = "ReorderedFields" |
The CAML description of the field order. |
Name = "owshiddenversion" |
This is the current version number of the SharePoint list. The REORDERFIELDS command works only if Windows SharePoint Services and the client program agree on the version number of the list. This ensures that only one user at a time can modify the list schema. |
Decoded
<Method ID="0,REORDERFIELDS">
<SetList Scope="Request">GUID</SetList>
<SetVar Name="Cmd">REORDERFIELDS</SetVar>
<SetVar Name="ReorderedFields"><Fields>
<Field Name="owshiddenversion" />
<Field Name="ID" />
<Field Name="Title" />
<Field Name="Modified" />
<Field Name="Created" />
<Field Name="Author" />
<Field Name="Editor" />
<Field Name="Edit" />
<Field Name="LinkTitle" />
<Field Name="Name" />
<Field Name="Age" />
<Field Name="FieldXYZ" />
<Field Name="Address" />
<Field Name="FieldABC" />
</Fields>
</SetVar>
<SetVar Name="owshiddenversion">10</SetVar>
</Method>