Skip to Content
avatar image
Former Member

Unable to set the sort direction to no sort

Hi Team

I am trying to set the sort direction to no sort for the sorts using the below code and getting the exception followed.

Error: "Invalid sort direction"

for (int i = 0; i < count; i++)

{

               m_ReportDoc.DataDefController.SortController.ModifySortDirection(m_ReportDoc.DataDefinition.Sorts[i],                     CrSortDirectionEnum.crSortDirectionNoSortOrder);

}

I am doing this to handle removing sorting on Groups. I am getting error if try to delete the default sort provided on the groups. Getting the invalid field error and SAP agreed that there a bug. So as an alternative when user tries to delete sort provided on group I am setting it to NoSort and not showing it to the user if the sort direction is no sort.

Please let me know how can we set the sort direction to No sort or how can we remove the sorts on the groups.

Regards

Sudeep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 04, 2015 at 11:14 AM

    I am using VS 2013 , BI 4.1 versions.

    I am able to set the sort direction to Original Sort from the CR server using Group export. and the options.

    Add comment
    10|10000 characters needed characters exceeded