Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ViewFields Element (List)

Published: May 2010

Provides an enumeration of the fields in a view through a listing of the FieldRef elements.






Minimum: 0

Maximum: 1

For a FieldRef element to be used within a ViewBody element, it must also be included in the ViewFields element to ensure that the field is available in the database result set.

The SQL SELECT clause is generated from the collection of FieldRef listings.

ViewFields can include references to fields in a foreign list, if there is a join defined by a Join element.

The following example enumerates the collection of fields used in a view.

  <FieldRef Name="LinkTitle"></FieldRef>
  <FieldRef Name="AssignedTo"></FieldRef>
  <FieldRef Name="Status"></FieldRef>
  <FieldRef Name="Priority"></FieldRef>
  <FieldRef Name="DueDate"></FieldRef>
  <FieldRef Name="PercentComplete"></FieldRef>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.