Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

When a Shared variable value is Passed to the parameter of Sub-Report, Sub report doesnot execute

$
0
0

When the value of a shared variable is passed to the parameter of the Subreport, Subreport is not executed in Crystal Reports for Enterprise.

While in CR 2011, the Sub-Report gets executed.

 

STEPS FOR CREATING THE REPORT :

 

1. Create a report in Crystal Reports for Enterprise

 

2. Add a subreport in the Report Header A section.

 

3. In the Subreport :

 

     1. Create a parameter

 

     2. Place the parameter in the Report Header section.

 

     3. Create a formula :

 

          shared stringVar test:= {Parameter};

 

     4. Place the formula in the Report Header Section.

 

4. Create a formula in Main report :

 

     shared stringVar test;

 

5. Place this formula in the Report Header B section

 

6. Now Insert a new Subreport in the Report Header C section

 

7. In this Subreport :

 

     1. Create a parameter

 

     2. Place the parameter in the Report Header section.

 

     3. Pass the value in the Formula created in the Main Report to the parameter of this Subreport.

 

8. Execute the report.

 

Subreport1 gets executed, but Subreport2 doesnot get Executed.

  

If a report is created in Crystal Reports 2011 with the same workflow, both
the Subreports get Executed.


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>