Solved

Index report to Summary Report

Posted on 2016-09-13
8
22 Views
Last Modified: 2016-10-02
Hi Guys,

I am working on Crystal Reports 11 and trying to achieve a functionality where I have a Index report which has a unique numbering field called NCR Number and trying to link this unique field which is there in a detail report too. I want when I click on the index report NCR Number it should open the detail report showing the details of the NCR. Please suggest how to achieve this functionality.
0
Comment
Question by:Arp
  • 4
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 41796030
You can use an ON DEMAND subreport.

mlmcc
0
 

Author Comment

by:Arp
ID: 41796083
But how do I link the NCR numberss in both the reports? Can I have a functionality where i click on the Ncr number and the detail report opens up. The solution you suggested will show the on demand sub report as a seperate link.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 41796265
You can link the subreport on any field in the main report to limit (filter) to the required data.

You can format the subreport as ON DEAMN (last tab).  You can then add a field to be displayed in the subreport spot.

Look at this sample

mlmcc
Inventory-with-On-Demand-Subreport.rpt
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:Arp
ID: 41796390
I got you, but when I try to link the reports by the field the data in detail report disappears. And how to add a field to display in the subreport spot?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points (awarded by participants)
ID: 41796556
You add the field for the display through the FORMAT SUBREPORT popup

Right click the SUBREPORT
Click FORMAT SUBREPORT
Click the SUBREPORT tab
Click the ON-DEMAND SUBREPORT checkbox
Click the FORMULA BUTTON to the right of ON-DEMAND SUBREPORT CAPTION
Add the field you want to display to the formula.
    The result of the formula must be a string so you may need to use ToText or CStr
     to convert the field to a string
Click SAVE AND CLOSE in the FORMULA EDITOR
Click OK in the FORMAT EDITOR

Is the link used to select the data for the subreport?
You can edit the subreport selection formula to be the filter you need.
    If you simply linked it added the parameter and test of EQUALS which may be the wrong filter.

mlmcc
1
 

Author Comment

by:Arp
ID: 41796665
This worked, I have a hyperlink on each NCR number, but it opens the whole sub-report not the NCR sub report. Can you help on this?

I think I need to link both the reports on a field but when I do that the data disappears from the detail report or the sub report
0
 

Author Comment

by:Arp
ID: 41796741
I was selecting the wrong value in the link. I figured it out. Thanks for the support.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question