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.
We have to iterate some images in a report based on activity quarter so that the calendar months .gifs appear in the heading of a PDF report. (There is a page-break on quarter.) For example, the following decode correctly designates the .gif name
The syntax to add an image to an HTML report allows you to refer to a column instead of a URL. The column contains the URL. Therefore, the DEFINE field has to be mentioned in the report request (with a NOPRINT) and the Stylesheet entry would refer to this column.
Using a File Name in a Data Source Field in an HTML Report
SET BASEURL=http://ibi/apps/session/gifs/
DEFINE FILE CAR
FLAG/A12=DECODE COUNTRY ( 'ENGLAND' 'uk' 'ITALY' 'italy' 'FRANCE' 'france' 'JAPAN' 'japan' );
END
TABLE FILE CAR
PRINT FLAG NOPRINT
AND MODEL AS ''
BY COUNTRY NOPRINT AS ''
BY CAR AS ''
WHERE COUNTRY EQ 'ENGLAND' OR 'FRANCE' OR 'ITALY' OR 'JAPAN'
ON COUNTRY SUBHEAD
"<+0>Cars produced in <ST.COUNTRY"
HEADING CENTER
"Car Manufacturer Report"
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=SUBHEAD, IMAGE=(FLAG), $
TYPE=REPORT, GRID=OFF, $
TYPE=HEADING, SIZE=12, STYLE=BOLD, $
TYPE=SUBHEAD, STYLE=BOLD, $
ENDSTYLE
END
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 BASEURL is only used for HTML reports. For PDF reports, the images must be in the App Path.
The size and position tags only work for PDF. The size and position in HTML would have to be manipulated in some other way.
To see the PDF version, simply un-comment the -*ON TABLE PCHOLD FORMAT PDF line.
SET BASEURL='http://localhost:8080/approot/demo/'
-RUN
DEFINE FILE CAR
FLAG/A20= IF COUNTRY EQ 'W GERMANY' THEN 'GERMANY_FLAG.jpg' ELSE COUNTRY || '_FLAG.jpg';
END
-RUN
TABLE FILE CAR
PRINT
FLAG NOPRINT
MODEL AS ''
BY COUNTRY NOPRINT AS ''
BY CAR AS ''
ON COUNTRY SUBHEAD
"<+0>Cars produced in <ST.COUNTRY"
HEADING CENTER
"Car Manufacturer Report"
" "
-*ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=SUBHEAD, IMAGE=(FLAG), SIZE=(0.3 0.2), POSITION=(4.0 0.0), $
TYPE=REPORT, GRID=OFF, $
TYPE=HEADING, SIZE=12, STYLE=BOLD, $
TYPE=SUBHEAD, STYLE=BOLD, $
ENDSTYLE
END
-RUN
The images are here:
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