Partager via


DisplayPost Method

Requests that Microsoft Windows SharePoint Services renders the Collaborative Application Markup Language (CAML) assigned to the post body of the form.

Syntax

<Method ID="Text">
  <SetVar Name="Cmd">DisplayPost</SetVar>
  <SetVar Name="PostBody">CAML</SetVar>
  <SetVar Name="NextUsing">URL</SetVar>
  <SetVar Name="XMLDATA">[TRUE|FALSE]</SetVar>
  <SetVar Name="View">GUID</SetVar>
<Method>

Parameters

ID = "Text"

Name = "Cmd"

Name = "PostBody"

Name = "NextUsing"

Name = "XMLDATA"

Name = "View"

Decoded

<Method ID="0,DisplayPost">
  <SetVar Name="Cmd">DisplayPost</SetVar>
  <SetVar Name="PostBody">&lt;ows:XML&gt;&lt;ProjectProperty Select=&quot;Title&quot;
    NoURLEncode=&quot;TRUE&quot;/&gt;&lt;/ows:XML&gt;</SetVar>
  <SetVar Name="NextUsing">http://Server-Name/sites/Site_Name/Default.aspx</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. For more information, see Error Message Format for Windows SharePoint Services.

Sample Output