View schema
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | 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
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
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
- ForEach
- IfEqual
- IfHasRights
- IfNeg
- IfNew
- IfSubString
- Limit
- Length
- MapToAll
- MapToContentType
- MapToControl
- MapToIcon
- Method
- SelectionOptions
- Switch
Standard rendering elements
The following standard rendering elements are used to render HTML within the various sections of the previously listed structural or specialized rendering elements.
- Column
- Column2
- Counter
- CurrentRights
- Field
- FieldPrefix
- FieldProperty
- FieldSortParams
- FilterLink
- GetFileExtension
- GetVar
- HTML
- HttpHost
- HttpPath
- HttpVDir
- ID
- Identity
- List
- ListProperty
- ListUrl
- ListUrlDir
- LookupColumn
- MeetingProperty
- PageUrl
- ProjectProperty
- Property
- ScriptQuote
- ServerProperty
- SetList
- SetVar
- ThreadStamp
- URL
- UrlBaseName
- UrlDirName
- UserID
- WebQueryInfo