cancel
Showing results for 
Search instead for 
Did you mean: 

Print Report Footer only IF certain value found in DETAILS

borozu
Explorer
0 Kudos

How to write condition to suppress/unsuppress report footer?

So in details I will have a lot of lines, and sometimes one of them will be ASSY. And ONLY when ASSY in details exist I would like crystal to print Report footer with barcodes for punching machine, otherwise suppress the section.

 

Is it possible?

 

borozu_0-1711374355575.png

borozu_1-1711374496096.png

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

ido_millet
Active Contributor

Yes, create a detail-level formula that returns 1 if = ASSY and 0 otherwise.
In the report footer suppress expression, check to see if the MAX of that formula if 0 or 1.

borozu
Explorer
0 Kudos
Can you please explain more as I'm not so into CR? Where I can write "detail-level" formula?
borozu
Explorer
0 Kudos

So I created formula

 

 

if {V_BI_BAR_DETAIL.PWC} = "ASSY" THEN 1 ELSE 0

 

 

and in suppression for group footer:

 

 

{@display_punching_data} = 0

 

 

But still doesn't work 😞

 

Is it possible that it's because just one field in DETAILS section is this assy? And I have multiple details lines? Maybe it checks just the first one? Because formula works, when I put it on a report it does print 1 when ASSY line

borozu_0-1714405281348.png

 

 

 

Any ideas?

ido_millet
Active Contributor
0 Kudos

You forgot to check the MAX of that formula:

MAXIMUM({@display_punching_data}) = 0