Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8468091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:50:10+00:00 2026-06-10T15:50:10+00:00

With Crystal Reports I am able to modify the field that is being grouped

  • 0

With Crystal Reports I am able to modify the field that is being grouped on for a given report but cannot seem to figure out how to change the direction that the field is being sorted on. Basically I am trying something like this:

Sorts sorts=reportdocument.getDataDefinition.getSorts
ISort s=sorts.get(index)
    if(s.getSortField.getName equals field.getName)
        s.setDirection(...)

I have also tried removing the Sort instance at the given index and created a new one to replace it and that didnt work either. Does anyone have any ideas on how I can do this, or know of any good resources?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:50:12+00:00Added an answer on June 10, 2026 at 3:50 pm

    I have figured out how to do this and am posting what I did in case it will help anyone else. Basically you need to do something like the following:

    GroupController gc=...
    IGroup old=gc.findGroup(some field)
    IGroup newGroup=(IGroup)old.clone(true);
    
    ISort sort=new Sort();
    sort.setSortField(field sorting on);
    sort.setDirection(SortDirection);
    
    newGroup.setSort(sort);
    gc.modify(old,newGroup);
    

    This link (not only was virtually all I could find on this) but was also semi helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a report in Crystal Reports. On that report there is a general
I have a report made with Crystal Reports 2008 that I need to deploy
I have a project with Crystal Reports files that doesn't seem to build correctly
I am using SAP Crystal Reports in VS 2010. I create a report like
I have installed Crystal Reports 8.5 on my computer recently. But When I open
I have some Crystal Reports connecting to a Sql Server db that I would
We have a legacy VB6 application that uses Crystal Reports XI to generate printed
I have a Crystal 2008 report that will be deployed to an InfoView server.
I have a crystal report that shows sales volumes called week to date volume.
My report Groups by two fields, the second being a date field. If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.