NewViewPage Method

Applies to: SharePoint Foundation 2010

Adds a view page to a SharePoint Web site. A view page controls the display of items in a SharePoint list.

<Method ID="Text">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">NewViewPage</SetVar>
  <SetVar Name="PageUrl">List/Folder_Name/View_Page.aspx</SetVar>
  <SetVar Name="DisplayName">View_Title</SetVar>
  <SetVar Name="HiddenView">[TRUE|FALSE]</SetVar>
</Method>

Parameters

Parameter

Description

ID = "Text"

Application-specific string. In an HTML editor compatible with Microsoft Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007, the string provides the sequence number and name of the method.

Scope = "Request"

When set to Request, the Scope attribute sets the variable for the scope of the enclosing Method element, unless the variable is changed by another tag.

Name = "Cmd"

Must be set to NewViewPage.

Name = "PageURL"

The URL of the new view page, relative to the root folder of the SharePoint site; for example, Lists/Folder_Name/File_Name.

Name = "DisplayName"

Specifies the name of the view that is displayed on the Quick Launch bar.

Name = "HiddenView"

TRUE to hide the view; otherwise, FALSE. A hidden view cannot be modified directly from a SharePoint site, but can be modified using an HTML editor compatible with Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007.

Decoded

<Method ID="0,NewViewPage">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">NewViewPage</SetVar>
  <SetVar Name="PageUrl">Lists/Announcements/View_Page.aspx</SetVar>
  <SetVar Name="DisplayName">View_Title</SetVar>
  <SetVar Name="HiddenView">FALSE</SetVar>
</Method>