Solved

Index report to Summary Report

Posted on 2016-09-13
8
24 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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