SP.View.viewQuery Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets or sets a value that specifies the query that is used by the list view.

var value = SP.View.get_viewQuery(); 
SP.View.set_viewQuery(value);

Property Value

Type: String

Applies To

SP.View Class

Remarks

It must be null or a valid XML fragment that conforms to CamlQueryRoot.

See Also

Reference

SP.View Methods

SP.View Properties

SP Namespace