Solved

Index report to Summary Report

Posted on 2016-09-13
8
23 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …

749 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