Skip to Content
author's profile photo Former Member
Former Member

Sort on group total ( Sum of group)

I need to sort output either on the details and when the details are suppressed on the total of a group

If I suppress details and manually change sorting using

the designer and "Group Sort Expert", " For this group sort All based on Sum of table.column" gives me exactly what I need.

However, I need to switch this "Sort on Total" on and off programatically.

Tried to change or add a TopBottomNSortField programtically using RAS - with no success yet.

Am I using the correct approach at all ?

Using CR 2008 ( 12.3.0.601 ) on Windows, fat client

Thanks

Oskar

Edited by: Oskar Atkinson on Apr 15, 2011 1:05 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Apr 15, 2011 at 09:32 PM

    I wonder if you should be looking at the Group itself (GroupNameFieldClass.Group property in the documentation). It has a SpecifiedGroupOptions property that you can specify the sorting criteria. Maybe try setting this in the designer and see if you can retrieve the sorting through your application and then try to change it if you can.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.