?
Solved

Subreport in Details - shared variable-no value first record

Posted on 2013-11-11
2
Medium Priority
?
689 Views
Last Modified: 2013-11-11
CR 2008 V2. I have a report with a subreport in the details section to get one value via a shared variable. On the first record, the value is 0. How can I get a value for the first record?
0
Comment
Question by:Datakat
[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
2 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 1000 total points
ID: 39638956
The subreport must be in a section before you want to use the shared value.  Crystal uses a multipass method for rendering the reports.  
THe method is top down so the report header is done first then group headers then details then group footers

Subreports are the LAST objects evaluated in a section so the values from them are not known until after the subreport is evaluated which will then be after the section is displayed.

Try this
Insert a "second" details section
  Right click the detail section in the left margin
  CLick INSERT SECTION BELOW - Details B appears
You can click the left margin and drag the new section up so it is now Details A
Move the subreport to Details A
The value it evaluates will now be available in Details B which will have the rest of what you were displaying in the detail section

mlmcc
0
 

Author Closing Comment

by:Datakat
ID: 39639380
Thank you.  I thought that might be the case, but wasn't sure if I was just missing something.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 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