Problem using returned subreport value in Print When Expression

1

 

 Hello!!

I have main report and one subreport in every detail of main report. I need to put some flag (color, line, whatever..) based on calculation of main report value & subreport returned value.

The problem is I can't use a subreport returned value in Print When Expression because of evaluation time is always Now. Is it possible somehow to flag the detail row/field based on subreport returned value.

Miljan

 



Post Edited by sumija at 02/21/2011 15:26
sumija's picture
10
Joined: Sep 29 2010 - 3:57pm
Last seen: 2 years 5 months ago

5 Answers:

0

Have you tried changing the evaluation time of the field that you want styled from "Now" to "Band"?  The ultimate guide says that if you need to use any returned parameters in the same band as the subreport itself, the field that uses the returned parameter needs to be set to "Band".

Carl

cbarlow3's picture
1469
Joined: Mar 4 2010 - 8:59am
Last seen: 2 months 1 week ago
0

 

 Yes I did, but the evaluation time of Print When Expression is Now and the returning parameter is null in that time.

The question is can I use returning parameter from subreport to print or not to print some fields in the same band (subreport is in detail band, also the fields which I want to print depending of ret. values)

 

Миљан

 



Post Edited by sumija at 02/23/2011 13:17
sumija's picture
10
Joined: Sep 29 2010 - 3:57pm
Last seen: 2 years 5 months ago
0

I resolve my problem putting flag into the subreport. It is not the perfect place, but it's doing a job !

 

Миљан



Post Edited by sumija at 02/25/2011 01:59
sumija's picture
10
Joined: Sep 29 2010 - 3:57pm
Last seen: 2 years 5 months ago
0

 Hi sumija,

       I am having the same problem.  Can you specify how you solved your problem by putting a "flag" in the subreport? What flag is it specifically? A sample template would be very helpful.  Your help and advice will be very much appreciated.

Regards,

Jan

leunajyee's picture
Joined: Oct 4 2011 - 7:55am
Last seen: 7 years 3 months ago
0

 Maybe the word Flag is not the right one.

I tried to return some data from subreport to main report, but that not worked. I resolved my problem by sending data from master report to subreport, and instead of main report I used subreport for what I needed to do (show/hide some fields).

Miljan

sumija's picture
10
Joined: Sep 29 2010 - 3:57pm
Last seen: 2 years 5 months ago
Feedback