Solved

Subreport link to show in the Group section of the main report

Posted on 2013-05-17
8
690 Views
Last Modified: 2013-05-20
Since Crystal reports 2008 does not allow creating tabs like excel or Webi, I've created subreports that would show as links in main report. But now I am trying to move the subreports that are placed in the detail section of the main report to the Grouping section of the main report.
I am not able to create groups just with the subreports links.
Is it possible to create groups based on the subreport links...
Please clarify
0
Comment
Question by:Venkat15
  • 4
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
I don't know what you mean by groups based on the subreport links

You can create groups from any database field or any formula that evaluates in the BeforeReadingRecords or WhileReadingRecords pass.

Subreports are evaluated in the last pass through the report after the grouping is done so if you are trying to group on a value returned from the subreport it won't work.

If you are linking the subreport to the main report on one or more fields, you should be able to create groups on the fields that make up the linking.

mlmcc
0
 
LVL 22

Accepted Solution

by:
Ido Millet earned 500 total points
Comment Utility
Sounds like you are using a blank main report as a container for subreports.
You are probably trying to designate one report section for each subreport.
You can simply place the On-Demand subreports one below the other in the Report Header section.
Or, if you wish to separate them into different sections (perhaps for background formatting reasons), just split the Report Header or Report Footer sections into multiple subsections (RHa, RHb, etc...) using the Insert Section Below option.

By the way, you mentioned you would actually prefer a multi-tab display of the data. One of the 3rd-party Crystal Reports desktop schedulers listed at http://kenhamady.com/bookmarks.html allows you to take one or more Crystal Reports and deliver their content via multiple tabs inside an Excel workbook or inside a web dashboard (without needing a web application).
0
 

Author Comment

by:Venkat15
Comment Utility
Yes, you are right?? the 5 subreports in main report should be displayed either in tabs or as groups but not one below the other in the main report. So each subreport should act as a database field in mainreport and I should be able to group them, that way when I run the report,eventhough it may now show as tabs but it can show in the Groups section and the users will be able to select the reports from there.

I am not sure of the 3rd party tools. Please let me know if I can trick the crystal report to see each subreport as database field, so the reports can be seen the groups section in the preview. The report portal we are using is Infoview.
0
 
LVL 22

Expert Comment

by:Ido Millet
Comment Utility
Now I understand.  Easy solution is to create a simple MS Access or Excel table with 5 records. Use that as the data source for your report, Group so each record becomes a group, and conditionally show only one of the 5 subreports in each group.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:Venkat15
Comment Utility
Can this be achieved in formula
0
 

Author Comment

by:Venkat15
Comment Utility
Thanks for understanding....
I see this as a solution, but Please explain....Not sure how to acheive this.

As I said the report portal is infoview..

Thanks a lot
0
 

Author Comment

by:Venkat15
Comment Utility
and infoview is pointing to SQL Server 2008
0
 
LVL 22

Expert Comment

by:Ido Millet
Comment Utility
Then create the simple 5-row table in SQL Server.

Or create all 5 subreports as On-Demand subreports and let the user click on the subreport labels to launch them.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
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…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now