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.
I am trying to based on &WFFMT on whether to use which image path to cater for PDF and HTML, but it seems it is not working. Can you guys help to see what went wrong.
-SET &PDFIMGURL = 'logo.gif';
-SET &HTMLIMGURL = '/approot/test/logo.gif';
JOIN
INNER CUST.CUST.IPKIPN IN CUST TO MULTIPLE APPL.APPL.ANKIPN IN APPL TAG J0
AS J0
END
DEFINE FILE CUST
FLAG/A1 = IF &WFFMT EQ HTML THEN '1' ELSE '0';
MALE/I7 = IF IPSEX EQ 1 THEN + 1 ELSE + 0;
FEMALE/I7 = IF IPSEX EQ 2 THEN + 1 ELSE + 0;
END
TABLE FILE CUST
SUM
'CUST.CUST.MALE' AS 'Male'
'CUST.CUST.FEMALE' AS 'Female'
BY 'CUST.CUST.AGERANGE' AS 'Age Range'
ON TABLE SUBHEAD
" "
" "
HEADING
"APPLICATION APPROVED FROM <+0>&dateFrom <+0>TO<+0> <+0>&dateTo"
" "
"AGE VS GENDER"
" "
FOOTING
" "
" "
" "
"Private & Confidential"
"Report Generated On <+0>&DATEtrDMYY<+0> "
ON TABLE SET PAGE-NUM ON
ON TABLE ROW-TOTAL/I11 AS 'Total'
ON TABLE SUMMARIZE AS 'Total'
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
PAGECOLOR=RGB(245 245 245),
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABHEADING,
IMAGE=&HTMLIMGURL,
POSITION=(+0.055556 -0.027778),
SIZE=(1.680556 0.402778),
WHEN=FLAG EQ '1',
$
TYPE=TABHEADING,
IMAGE=&PDFIMGURL,
POSITION=(+0.055556 -0.027778),
SIZE=(1.680556 0.402778),
WHEN=FLAG EQ '0',
$
Thank you in advance.
Regards, Kevin TongThis message has been edited. Last edited by: Kevin Tong,
WebFOCUS 7.6.9 Windows 2003, all output
Posts: 32 | Location: Malaysia | Registered: December 29, 2009
Both images need to be somewhere in your APP path. Give them different names to avoid confusion - for example html.gif and pdf.gif. You can eliminate the DEFINEd FLAG and WHEN clause in the stylesheet by making the logo decision with Dialogue Manager: