Views.UpdateViewHtml2 method

Updates the specified view with the supplied properties and values, including the display properties of Introduction to Collaborative Application Markup Language (CAML) and HTML.

Namespace:  WebSvcviews
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateViewHtml2", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateViewHtml2 ( _
    listName As String, _
    viewName As String, _
    viewProperties As XmlNode, _
    toolbar As XmlNode, _
    viewHeader As XmlNode, _
    viewBody As XmlNode, _
    viewFooter As XmlNode, _
    viewEmpty As XmlNode, _
    rowLimitExceeded As XmlNode, _
    query As XmlNode, _
    viewFields As XmlNode, _
    aggregations As XmlNode, _
    formats As XmlNode, _
    rowLimit As XmlNode, _
    openApplicationExtension As String _
) As XmlNode
'Usage
Dim instance As Views
Dim listName As String
Dim viewName As String
Dim viewProperties As XmlNode
Dim toolbar As XmlNode
Dim viewHeader As XmlNode
Dim viewBody As XmlNode
Dim viewFooter As XmlNode
Dim viewEmpty As XmlNode
Dim rowLimitExceeded As XmlNode
Dim query As XmlNode
Dim viewFields As XmlNode
Dim aggregations As XmlNode
Dim formats As XmlNode
Dim rowLimit As XmlNode
Dim openApplicationExtension As String
Dim returnValue As XmlNode

returnValue = instance.UpdateViewHtml2(listName, _
    viewName, viewProperties, toolbar, _
    viewHeader, viewBody, viewFooter, _
    viewEmpty, rowLimitExceeded, query, _
    viewFields, aggregations, formats, _
    rowLimit, openApplicationExtension)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateViewHtml2", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://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
    Type: System.String

    A string that contains the internal name of the list.

  • viewName
    Type: System.String

    A string that contains the GUID for the view.

  • viewProperties
    Type: System.Xml.XmlNode

    An XML fragment that contains all view-level properties as attributes, such as Editor, Hidden, ReadOnly, and Title.

  • toolbar
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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
    Type: System.Xml.XmlNode

    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:

Return value

Type: System.Xml.XmlNode
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="https://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>

Remarks

To modify only the query and field definitions in a view, use the UpdateView method.

See also

Reference

Views class

Views members

WebSvcviews namespace

UpdateViewHtml