This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Cannot add Override='TRUE' to OrderBy.

description

There is not a way currently to express the override attribute of an order by clause such as this example:

<OrderBy Override='TRUE'><FieldRef Name='ID'></OrderBy>

I tried using the overload that accepts existingOrderBy; however, it strips the Override attribute off. Also, since there is no way to only include an existingOrderBy field it duplicated the FieldRef element.

comments

sadomovalex wrote Dec 18, 2015 at 11:30 AM

hi zyzil,
thank you for the feedback. Yes, at the moment there is no possibility to specify Override attribute for OrderBy element by code (you may add it still to resulting string .Replace("<OrderBy", "<OrderBy Override='TRUE'")). I added it to development tasks list https://camlex.codeplex.com/wikipage?title=Future%20improvements.