I use SharePoint Server through web-services.
To get View schema I use GetView method of Views.asmx. But it returns only FieldRefs with Names, without isAscending.
How would I know if View's field has sort direction?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
|||
|
|
|
You can find that actually in the 2nd part of the returned Xml, but only when using the GetViewHtml method, because that is part of the Query (search for the OrderBy), see here http://msdn.microsoft.com/en-us/library/views.views.getviewhtml(v=office.12).aspx. You could use Linq to Xml by example to retrieve the QUERY element.
|
|||
|
|
GetView returns Ascending property: |
|||
|
|