Focal Point
[CLOSED] Showing a field off and on, on a report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/926101183

March 02, 2010, 04:53 AM
GamP
[CLOSED] Showing a field off and on, on a report
quote:
Is there any way to change the period "ON TABLE SET EMPTYREPORT ANSI" creates

You can do that with the NODATA option:
TABLE FILE CAR
PRINT *
IF COUNTRY EQ 'MEXICO'
ON TABLE SET EMPTYREPORT ANSI
ON TABLE SET NODATA '0'
END
This will show all zeroes for all fields in the report.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
March 02, 2010, 06:25 AM
Tewy
Could you not use:

 
-RUN
TABLE FILE HOLD
SUM
MAX.TOPS_NBR
ON TABLE SAVE
END
-RUN
-SET &PCOM = IF &LINES GT 0 THEN '' ELSE '-*';


then in the report use
&PCOM.EVAL TOPS_NBR AS 'Policy,Number'



WF 7.6.11
Output: HTML, PDF, Excel
March 02, 2010, 12:51 PM
Dan Satchell
Since this is for ReportCaster, can you setup two report jobs - one for the zero policy numbers where the column is omitted and a second for the non-zero policy numbers where the column is printed?


WebFOCUS 7.7.05
March 05, 2010, 02:53 PM
Latigresa
I apologize but I have not had a chance to get back on this one. I hope to be able next week when I get back from vacation.

Have a great weekend!


WEBFOCUS 7.6.4
Server: WINXP
April 09, 2010, 09:58 AM
Latigresa
Thanks for all the help. The user decided not to go with this after all. I apologize for such a late response from me but they have me buried in reports.


WEBFOCUS 7.6.4
Server: WINXP