Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Passing Data from SubReport to Subreport Post Reply Post New Topic
Author Message
althomas
Newbie
Newbie


Joined: 09 Nov 2010
Online Status: Offline
Posts: 36
Quote althomas Replybullet Topic: Passing Data from SubReport to Subreport
    Posted: 06 Feb 2014 at 4:58am
Hello,
   I have create a report with many subreports. I wanted to pass a date field date from one Sub-report to another sub-report rather than to the main report. Is this possible to pass from one subreport to another subreport?

Thanks for your help!
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 06 Feb 2014 at 5:17am
shared variables are available to this. just declare them where you need them, and all the values should be the same.

declaration is easy:
shared datetimevar variablename;

remember assigning to a variable is done using the := operator and checking equality is =.

HTH
IP IP Logged
althomas
Newbie
Newbie


Joined: 09 Nov 2010
Online Status: Offline
Posts: 36
Quote althomas Replybullet Posted: 09 Apr 2014 at 7:54am
Is it possible to filter main report based on a formula from subreport?
I have a subreport which has a shared variable formula which calculated actual time - estimated time
i want to see only data if the calculated formula is +/- > 2.50 hrs.
When i try to use the formula in the main report, i get an error saying "This formula cannot be used because it must be evaluated later."
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Apr 2014 at 7:57am
no, a subreport is run after the main report has selected its data. You, could have the subreport run prior to a group or a detail and could then be used to suppress the display of the data in the main report, but you couldn't use a subreport to filter the main report.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 09 Apr 2014 at 8:07am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.