Condividi tramite


View Schema

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

View Elements

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

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

See Also

Concepts

Query Schema

List Schema