Views.UpdateViewHtml2 Method
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateViewHtml2", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] public XmlNode UpdateViewHtml2 ( string listName, string viewName, XmlNode viewProperties, XmlNode toolbar, XmlNode viewHeader, XmlNode viewBody, XmlNode viewFooter, XmlNode viewEmpty, XmlNode rowLimitExceeded, XmlNode query, XmlNode viewFields, XmlNode aggregations, XmlNode formats, XmlNode rowLimit, string openApplicationExtension )
Parameters
- listName
A string that contains the internal name of the list.
- viewName
A string that contains the GUID for the view.
- viewProperties
An XML fragment that contains all view-level properties as attributes, such as Editor, Hidden, ReadOnly, and Title.
- toolbar
A Toolbar element that sets the HTML used to render the toolbar in a view and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- viewHeader
A ViewHeader element that sets the HTML used to render the header of a view and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- viewBody
A ViewBody element that sets the HTML used to render the body of a view and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- viewFooter
A ViewFooter element that sets the HTML used to render the footer of a view and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- viewEmpty
A ViewEmpty element that contains the HTML used to render the page if the query returns no items and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- rowLimitExceeded
A RowLimitExceeded element that specifies alternate rendering for when the specified row limit is exceeded and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- query
A Query element containing the query that determines which records are returned and in what order, and that can be assigned to a System.Xml.XmlNode object. The following example performs a query for cases in which the ID field is less than 3, and displays items in the order of their titles:
- viewFields
A ViewFields element that specifies which fields to return in the query and in what order, and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- aggregations
An Aggregations element that specifies the fields to aggregate and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- formats
A Formats element that defines the grid formatting for columns and that can be assigned to a System.Xml.XmlNode object, as in the following example:
- rowLimit
A RowLimit element that specifies the number of items, or rows, to display on a page before paging begins and that can be assigned to a System.Xml.XmlNode object. The fragment can include the Paged attribute to specify that the view return list items in pages. The following example sets a limit of 100 items per page:
- openApplicationExtension
Return Value
A CAML fragment in the following form that contains the view schema and that can be assigned to a System.Xml.XmlNode object.<View Name="{54992C89-4F9F-4B2E-8E5A-F55C1C70831B}" Type="HTML" DisplayName="MyView" Url="Lists/TestCustList/MyView.aspx" BaseViewID="1" xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <ViewFields> <FieldRef Name="Attachments" /> <FieldRef Name="LinkTitle" /> <FieldRef Name="ID" /> <FieldRef Name="Created" /> </ViewFields> <Query> ... </Query> <ViewEmpty> ... </ViewEmpty> <GroupByHeader> ... </GroupByHeader> <GroupByFooter> ... </GroupByFooter> <ViewHeader> ... </ViewHeader> <ViewBody> ... </ViewBody> <ViewFooter> ... </ViewFooter> <PagedRowset> ... </PagedRowset> <PagedRecurrenceRowset> ... </PagedRecurrenceRowset> <RowLimit Paged="TRUE">100</RowLimit> <ViewBidiHeader> ... </ViewBidiHeader> <Toolbar Type="Standard"> ... </Toolbar> </View>
To modify only the query and field definitions in a view, use the UpdateView method.
