As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Is it possible to format a pdf report to look like the picture below. Or format it so it looks almost like the picture. I tried but I am not able to get the grid boxs around the Total Moved totals.
Thanks, prodriguThis message has been edited. Last edited by: prodrigu,
When I open up the discussion I see the picture. Can you send me your email and I will send you the picture? Or is there another way to upload pictures besides using http://tinypic.com?
I use dropbox.com and store my screenshots in a public folder - dropbox provides the image URL that you can use in the IMG tag in FocalPoint. Dropbox has a free option and I have not seen it being blocked...
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
The idea is to have your totals as records in the data, so the grid can be turned on/off.
TABLE FILE CAR
SUM
COMPUTE CAR/A16 = ' ' ;
COMPUTE MODEL/A24 = ' ' ;
COMPUTE DEALER_COST/D7 MISSING ON = MISSING ;
COMPUTE SEATS/I3 MISSING ON = MISSING ;
COMPUTE RETAIL_COST/D7 MISSING ON = MISSING ;
COMPUTE REC_TYPE/A1 = 'X' ;
BY COUNTRY
ON TABLE HOLD AS TMP_CAR FORMAT ALPHA
END
-RUN
FILEDEF TMP_CAR DISK tmp_car.ftm (APPEND
-RUN
TABLE FILE CAR
PRINT
DEALER_COST
SEATS
RETAIL_COST
COMPUTE REC_TYPE/A1 = 'D' ;
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SAVE AS TMP_CAR
END
-RUN
TABLE FILE CAR
SUM
COMPUTE C/A16 = ' ' ;
COMPUTE M/A24 = ' ' ;
DEALER_COST
COMPUTE S/I3 MISSING ON = MISSING ;
RETAIL_COST
COMPUTE REC_TYPE/A1 = 'T' ;
BY COUNTRY
ON TABLE SAVE AS TMP_CAR
END
-RUN
FILEDEF TMP_CAR DISK tmp_car.ftm
-RUN
SET NODATA = ' '
DEFINE FILE TMP_CAR
DISP_COUNTRY/A10 = IF REC_TYPE EQ 'D' THEN COUNTRY ELSE ' ' ;
END
TABLE FILE TMP_CAR
PRINT
DEALER_COST AS 'Dealer Cost'
SEATS/I3S AS 'Seats'
RETAIL_COST AS 'Retail Cost'
BY COUNTRY NOPRINT
BY REC_TYPE NOPRINT
BY DISP_COUNTRY AS 'Country'
BY CAR AS 'Car'
BY MODEL AS 'Model'
-* ON COUNTRY SKIP-LINE
ON TABLE SET STYLE *
PAGESIZE=A4,ORIENTATION=PORTRAIT, BORDER=OFF, SIZE=9, GRID=OFF, $
TYPE=TITLE, BORDER=LIGHT, $
TYPE=DATA, BORDER=LIGHT, $
TYPE=DATA , COLUMN=P01, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA , COLUMN=P02, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA , COLUMN=P03, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA , COLUMN=P05, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, WHEN=REC_TYPE EQ 'X', $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
I was able to get Total Moved positioned correctly. It will look alot clearner once you add a dummy row before the totals.
TABLE FILE CAR
SUM
COMPUTE CAR/A16 = ' ' ;
COMPUTE MODEL/A24 = ' ' ;
COMPUTE DEALER_COST/D7 MISSING ON = MISSING ;
COMPUTE SEATS/I3 MISSING ON = MISSING ;
COMPUTE RETAIL_COST/D7 MISSING ON = MISSING ;
COMPUTE REC_TYPE/A1 = 'X' ;
BY COUNTRY
ON TABLE HOLD AS TMP_CAR FORMAT ALPHA
END
-RUN
FILEDEF TMP_CAR DISK tmp_car.ftm (APPEND
-RUN
TABLE FILE CAR
PRINT
DEALER_COST
SEATS
RETAIL_COST
COMPUTE REC_TYPE/A1 = 'D' ;
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SAVE AS TMP_CAR
END
-RUN
TABLE FILE CAR
SUM
COMPUTE C/A16 = ' ' ;
COMPUTE M/A24 = 'Total Moved:' ;
DEALER_COST
COMPUTE S/I3 MISSING ON = MISSING ;
RETAIL_COST
COMPUTE REC_TYPE/A1 = 'T' ;
BY COUNTRY
ON TABLE SAVE AS TMP_CAR
END
-RUN
FILEDEF TMP_CAR DISK tmp_car.ftm
-RUN
SET NODATA = ' '
DEFINE FILE TMP_CAR
DISP_COUNTRY/A10 = IF REC_TYPE EQ 'D' THEN COUNTRY ELSE ' ' ;
END
TABLE FILE TMP_CAR
PRINT
DEALER_COST AS 'Dealer Cost'
SEATS/I3S AS 'Seats'
RETAIL_COST AS 'Retail Cost'
BY COUNTRY NOPRINT
BY REC_TYPE NOPRINT
BY DISP_COUNTRY AS 'Country'
BY CAR AS 'Car'
BY MODEL AS 'Model'
ON TABLE SET STYLE *
PAGESIZE=A4,
ORIENTATION=PORTRAIT,
BORDER=OFF,
SIZE=9,
GRID=OFF, $
TYPE=TITLE, BORDER=LIGHT, $
TYPE=DATA, BORDER=LIGHT, $
TYPE=DATA, COLUMN=P01, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, COLUMN=P02, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, COLUMN=P03, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, JUSTIFY=RIGHT, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, COLUMN=P05, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, WHEN=REC_TYPE EQ 'X', $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
This is very much possible with 7.7.03. You should be able to use new features like HEADALIGN=BODY, BORDERALL=LIGHT, COLPSAN=n, etc.. For subtotals, use COMPUTEs.
WF 7.7.02 on Windows 7 Teradata HTML,PDF,EXCEL,AHTML