Export (0) Print
Expand All

RenderView Method

Last modified: May 30, 2008

Applies to: SharePoint Foundation 2010

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>

Parameter

Description

ID = "Text"

Application-specific string. In an HTML editor compatible with Microsoft SharePoint Foundation, 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.

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

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

Show:
© 2015 Microsoft