Share via


RenderView Method

Requests the contents of a view for a SharePoint list. A view is a file containing a named set of rules describing how the items in the list are displayed. Each list has a default view associated with it.

Syntax

<Method ID="Text">
  <SetVar Name="Cmd">RenderView</SetVar>
  <SetVar Name="View">GUID</SetVar>
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="UrlBase">URL</SetVar>
</Method>

Parameters

ID = "Text"

Name="Cmd"

Name = "View"

Scope = "Request"

Name="UrlBase"

Decoded

<Method ID="0,RenderView">
  <SetVar Name="Cmd">RenderView</SetVar>
  <SetVar Name="View">GUID</SetVar>
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="UrlBase">http://Server_Name/sites/Site_Name/Lists/Announcements/AllItems.aspx</SetVar>
</Method>

Remarks

When used in URL protocol to make an HTTP GET request, this method requires a List parameter that specifies the GUID of the list.

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