Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
View Schema

View Schema

Windows SharePoint Services 3

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.

The View schema of Introduction to Collaborative Application Markup Language (CAML) is used to define the way in which list views are rendered in Windows SharePoint Services. A list view includes a query that returns the data that is displayed (see Query Schema).The view for a list is defined within a Schema.xml file that is located in Local_Drive:\Program Files\Common Files\Microsoft Shared\web server extenstions\12\TEMPLATE\FEATURES.

In SharePoint .aspx pages the view is conveyed through a Microsoft.SharePoint.WebPartPages.ListViewWebPart object. Views can be created or modified programmatically through the object model (for example, members of the SPView or SPViewCollection class), through the Views Web service (methods of the Views class), and through Remote Procedure Call (RPC) protocol (see Microsoft Windows SharePoint Services RPC Methods).

The following elements are used to lay out the structure of a view.

View

  Aggregations

    FieldRef

  GroupByHeader

  GroupByFooter

  ViewHeader

  ViewBidiHeader

  ViewBody

  ViewFooter

  PagedRowset

  PagedClientCallbackRowset

  PagedRecurrenceRowset

  RowLimit

  RowLimitExceeded

  ViewEmpty

  Toolbar

  ViewFields

    FieldRef

  Query

    [see Query Schema]

  ViewData

    FieldRef

  ViewStyle

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

  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

MapToControl

MapToIcon

Method

  SetList

  SetVar

SelectionOptions

Switch

  Expr

  Case

  Default

Standard Rendering Elements

Show:
© 2015 Microsoft