Partager via


REORDERFIELDS Method

Changes the order in which fields in a SharePoint list are displayed in the data entry form for the list.

Syntax

<Method ID="Text">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">REORDERFIELDS</SetVar>
  <SetVar Name="ReorderedFields">&lt;Fields&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;Field Name=&quot;field_name&quot; /&gt;
    &lt;/Fields&gt;
  </SetVar>
  <SetVar Name="owshiddenversion">Integer</SetVar>
</Method>

Parameters

ID = "Text"

Scope = "Request"

Name = "Cmd"

Name = "ReorderedFields"

Name = "owshiddenversion"

Decoded

<Method ID="0,REORDERFIELDS">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">REORDERFIELDS</SetVar>
  <SetVar Name="ReorderedFields">&lt;Fields&gt;
    &lt;Field Name=&quot;owshiddenversion&quot; /&gt;
    &lt;Field Name=&quot;ID&quot; /&gt;
    &lt;Field Name=&quot;Title&quot; /&gt;
    &lt;Field Name=&quot;Modified&quot; /&gt;
    &lt;Field Name=&quot;Created&quot; /&gt;
    &lt;Field Name=&quot;Author&quot; /&gt;
    &lt;Field Name=&quot;Editor&quot; /&gt;
    &lt;Field Name=&quot;Edit&quot; /&gt;
    &lt;Field Name=&quot;LinkTitle&quot; /&gt;
    &lt;Field Name=&quot;Name&quot; /&gt;
    &lt;Field Name=&quot;Age&quot; /&gt;
    &lt;Field Name=&quot;FieldXYZ&quot; /&gt;
    &lt;Field Name=&quot;Address&quot; /&gt;
    &lt;Field Name=&quot;FieldABC&quot; /&gt;
    &lt;/Fields&gt;
  </SetVar>
  <SetVar Name="owshiddenversion">10</SetVar>
</Method>

Return Value

Success

Returns the code attribute, which is a signed-decimal representation of an HRESULT.

Error

Returns an XML-encoded Unicode (UTF-8) text string. See Error Message Format for Windows SharePoint Services for more information.

Sample Output