Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Index report to Summary Report

Posted on 2016-09-13
8
Medium Priority
?
28 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
7 Comments
 
LVL 101

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 101

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
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 

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 101

Accepted Solution

by:
mlmcc earned 2000 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: 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.

Question has a verified solution.

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

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 …
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

782 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