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 13th, 2005, 05:04 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Angry Top N Record. Madhi Please Help me out

    Hello everybody,
    Can anybody help regarding controlling the TOP N Record through Parameter. Means if i select Record count = 10 then report will only list Top 10 Customer.

    Last edited by baijuthakkar; March 23rd, 2005 at 04:52 PM. Reason: mistake
    Reply With Quote
      #2    
    Old March 14th, 2005, 12:49 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Arrow Re: Top N Record. How to control N through parameter

    Hey no one came across this problem ...of controlling the TOP/Bottom Record through parameter. Its something like this...... I want Top 100 Customer based on sales. But what i need too is All Customer Based on sales. So instead of posting two report i can do the same two report into one if i can controll the number of records for TOP/BOTTOM through parameter

    Last edited by baijuthakkar; March 14th, 2005 at 04:59 PM.
    Reply With Quote
      #3    
    Old March 15th, 2005, 02:57 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Unhappy Re: Top N Record. How to control N through parameter

    Hello everyone.....
    If you dont understand the problem...please comeback and let me know....But atleast leave some feedback on this query. Common please share with me your years of experience.
    Reply With Quote
      #4    
    Old March 17th, 2005, 03:57 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: Top N Record. How to control N through parameter

    hello K.BABU...common come up with some idea? cant you control the recordnumber or groupnumber function in special function throught parameter... someone should definately have clue to this problem...
    Reply With Quote
      #5    
    Old March 18th, 2005, 05:53 AM
    Madhi Madhi is offline
    Senior Member
     
    Join Date: Jul 2004
    Location: Chennai, India
    Posts: 1,064
    Madhi will become famous soon enough (50+)
    Re: Top N Record. How to control N through parameter

    Use a Formula @Count having the code
    Code:
    Numbervar s;
    whileprintingrecords;
    s:=s+1;
    Now goto section expert of details section and in the suppress option there is a button labelled x-2. click that button and write this code
    Code:
    if {@Count}>10 then true
    __________________
    Madhivanan

    Failing to plan is Planning to fail
    Reply With Quote
      #6    
    Old March 22nd, 2005, 05:42 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: Top N Record. How to control N through parameter

    First of all thanx Madhi for your help. Will this work for Group footer(GF) or group header (GH) too. As i have displayed my GF result and suppress the detail section. So what i want is to control the records in my group footer through parameter.

    Thanx
    Thakkar

    Last edited by baijuthakkar; March 22nd, 2005 at 06:08 PM. Reason: Spelling mistake
    Reply With Quote
      #7    
    Old March 24th, 2005, 05:39 AM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: Top N Record. How to control N through parameter

    Crystal Version X1 support this feature. controlling N through parameter. If any one have other ideas to do so in version 8.5 please let me know asap. My data is in Group Footer 4 i.e. i have 4 groups and displaying only the group footer 4.

    Thanx
    thakkar
    Reply With Quote
      #8    
    Old March 24th, 2005, 06:16 AM
    Madhi Madhi is offline
    Senior Member
     
    Join Date: Jul 2004
    Location: Chennai, India
    Posts: 1,064
    Madhi will become famous soon enough (50+)
    Re: Top N Record. How to control N through parameter

    What are you showing at the group footer.
    Can you post sample data?
    __________________
    Madhivanan

    Failing to plan is Planning to fail
    Reply With Quote
      #9    
    Old March 24th, 2005, 02:27 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Arrow Re: Top N Record. How to control N through parameter

    What i have in detail is my sales data from the Month Table---->which is then group by product----->then by ------>department------>then by customer.
    I am showing the Grand total of all the customer in the group footer.

    something like this
    GH3--CUSTOMER
    GH2--Department 1
    GH1--Product X
    Detail section Month Jan --------1000 SUPPRESS
    Month Feb-------- 2000 SUPPRESS
    GF1 Total for Product X----------3000 SUPPRESS
    GF2 Total for Department 1----3000 SUPPRESS
    GF3 TOTAL FOR CUSTOMER Mr--3000 - Want to control no. of top
    customer displayed through parameter


    Hope you get hang of it what i want.


    Thanx

    Thakkar
    Reply With Quote
      #10    
    Old March 25th, 2005, 12:16 AM
    Madhi Madhi is offline
    Senior Member
     
    Join Date: Jul 2004
    Location: Chennai, India
    Posts: 1,064
    Madhi will become famous soon enough (50+)
    Re: Top N Record. How to control N through parameter

    Try this

    Place the fomula @count at GF3 and in the section suppress event write the code

    if {@ParameterValue}< {@Count} then true
    __________________
    Madhivanan

    Failing to plan is Planning to fail

    Last edited by Madhi; March 26th, 2005 at 12:24 AM.
    Reply With Quote
      #11    
    Old March 31st, 2005, 02:44 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: Top N Record. How to control N through parameter

    Thanx
    Madhi its working the way i want to.
    But on top of this one more help if you can. Actually it does read all the data and works while printing. so no improvement on performance side. Is it possible that only the data brought back from the server is the no. of records we selection and not all by default.
    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 02:29 PM.



    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