CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old March 14th, 2005, 09:16 PM
    kristyw kristyw is offline
    Member
     
    Join Date: Mar 2005
    Posts: 65
    kristyw is an unknown quantity at this point (<10)
    Question Grouping based on input parameters

    I'm not even sure if this is possible. Our requirement is that the user can input whether to view hourly, daily, or monthly data. Originally I had created three separate reports, but I've been asked to try again.

    Is it possible to specify when grouping to group by the whole operation date, or group by days, or group by weeks?

    Thanks.
    Reply With Quote
      #2    
    Old March 15th, 2005, 03:05 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: Grouping based on input parameters

    Its possible if the grouping is done in logical way say days->weeks->months->years.
    Trying to say that if you want to group by Monday or tuesday then the answer is no.
    Now what you do is in one report you start from inside grouping by days, then by weeks, then by months and then by years.
    Make a parameter through which you can suppress the section accordingly.
    Hope you can understand my theory.
    Reply With Quote
      #3    
    Old March 15th, 2005, 08:12 PM
    kristyw kristyw is offline
    Member
     
    Join Date: Mar 2005
    Posts: 65
    kristyw is an unknown quantity at this point (<10)
    Re: Grouping based on input parameters

    Thank you for your explanation. That was a lot easier than I thought!

    Reply With Quote
      #4    
    Old March 21st, 2005, 09:47 PM
    kristyw kristyw is offline
    Member
     
    Join Date: Mar 2005
    Posts: 65
    kristyw is an unknown quantity at this point (<10)
    Re: Grouping based on input parameters

    I've been re-doing one of my other reports and noticed that my solution still has one problem with it. I have grouped by (from outer level) : Year, Month, Product Type.

    When I view the product type by month, all are listed as one would expect. However, when viewing by year they are not grouped correctly, ie :

    Jan 2005
    prod x - 5
    prod y - 3
    prod z - 4

    Feb 2005
    prod x - 1
    prod y - 7

    So when viewing by year, I would like to see Prod x - 6. Instead, I get the two individual listings of prod x, etc.

    Is there a way around this?

    Thanks.
    Reply With Quote
      #5    
    Old March 22nd, 2005, 05:39 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: Grouping based on input parameters

    You should expect only one entry per year if you have done gouping by year->month->type.
    Right click on Group Producttype and click on change group and make sure that Order is in ascending and not Original order.

    B.thakkar
    Reply With Quote
      #6    
    Old March 22nd, 2005, 06:23 PM
    kristyw kristyw is offline
    Member
     
    Join Date: Mar 2005
    Posts: 65
    kristyw is an unknown quantity at this point (<10)
    Re: Grouping based on input parameters

    Thanks, though everything is grouped with order ascending. I think the problem is that they are essentially still grouped by month (we just choose not to acknowledge/display this by suppressing the header).
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 09:16 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009