RenderView 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.

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.

<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

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.

Name = "Cmd"

Must be set to RenderView.

Name = "View"

A string that contains the GUID for the view.

Scope = "Request"

When set to Request, the Scope attribute sets the variable for the rest of the request, unless the variable is changed by another tag. When the Scope attribute is omitted, the variable remains set until the end tag.

Name="UrlBase"

Specifies the URL of the view file.

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.