Friday, June 15, 2012 3:53 PM
I can't sort the cases by descending dates ... I have modified the view "Cases Web View" to sort by dates et customer... but it changes nothing in Customer portal !
Thanks for the help
Thursday, August 02, 2012 6:32 PM
I've recently had the same problem. It doesn't appear to pull sorting options in the code, only the columns.
However, I did find a work around. Using Visual Studio, I modified CaseAccess.cs and added a orderby into GetCasesByCustomer section.orderby c.GetAttributeValue<Guid?>("createdon") descending
- Marked As Answer by Stephane_CRM Friday, August 03, 2012 7:17 AM
Friday, August 03, 2012 7:17 AM
Thanks for the answer...
What I did to sort cases, is to modify the request to display the cases via Visual Studio in ViewCases.aspx.cs :
var casesByStatus = string.Equals(status, "En cours", StringComparison.InvariantCulture)
? cases.Where(c => c.StateCode == (int)Enums.IncidentState.Active).OrderByDescending(c => c.CreatedOn)
: cases.Where(c => c.StateCode != (int)Enums.IncidentState.Active).OrderByDescending(c => c.CreatedOn);
- Marked As Answer by Shan McArthurMVP, Moderator Thursday, August 30, 2012 12:27 PM