Export (0) Print
Expand All

View Schema

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

The View schema of Collaborative Application Markup Language (CAML) is used to define how the contents of a list view are rendered in Microsoft SharePoint Foundation.

Note Note

SharePoint Foundation 2010 uses XSLT to define list views, and the View schema is maintained for backward compatibility. For information about XSLT list views, see List Views.

A list view includes a query that returns the data that is displayed in the view. For the list of query elements, see Query Schema. For the top-level elements that are used to organize a view, see List Schema.

In SharePoint Foundation 2010 .aspx pages, the view is conveyed through a Microsoft.SharePoint.WebPartPages.XsltListViewWebPart object. Views can be created or modified programmatically through either the server-side or client-side object model (for example, members of SPView or SPViewCollection and their related types in the Microsoft.SharePoint.Client (JavaScript: SP) namespace), through the Views web service (methods of the Views class), or through remote procedure call (RPC) protocol (see Windows SharePoint Services RPC Methods).

Specialized rendering elements are used within a view to define the logic for constructing HTML. These elements can contain numerous standard rendering elements.

ContentTypes

Fields

FieldSwitch

  Expr

  Case

  Default

ForEach

IfEqual

  Expr1

  Expr2

  Else

  Then

IfHasRights

  RightsChoices

    RightsGroup

  Else

  Then

IfNeg

  Expr1

  Expr2

IfNew

IfSubString

  Expr1

  Expr2

  Else

  Then

Limit

  Column

  More

  Text

Length

MapToAll

MapToContentType

MapToControl

MapToIcon

Method

  SetList

  SetVar

SelectionOptions

Switch

  Expr

  Case

  Default

Show:
© 2014 Microsoft