Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]StyleSheet Conditioning

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]StyleSheet Conditioning
 Login/Join
 
Silver Member
posted
Hi Guys,

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 Tong

This message has been edited. Last edited by: Kevin Tong,


WebFOCUS 7.6.9
Windows 2003, all output
 
Posts: 32 | Location: Malaysia | Registered: December 29, 2009Report This Post
Virtuoso
posted Hide Post
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:

-SET &IMGURL = IF &WFFMT EQ 'HTML' THEN 'html.gif' ELSE 'pdf.gif';
.
.
.
.
TYPE=TABHEADING,
     IMAGE=&IMGURL,
     POSITION=(+0.055556 -0.027778),
     SIZE=(1.680556 0.402778),
$
.
.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
I would suggest:

-SET &IMGURL = IF &WFFMT EQ 'PDF' THEN 'logo.gif' ELSE '/approot/test/logo.gif'
.
.
.
.
.
TYPE=TABHEADING,
     IMAGE=&IMGURL,
     POSITION=(+0.055556 -0.027778),
     SIZE=(1.680556 0.402778),
$


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
Dan & Waz,

Thanks for replying. Both solution works, you guys rocks.

Regards,
Kevin Tong


WebFOCUS 7.6.9
Windows 2003, all output
 
Posts: 32 | Location: Malaysia | Registered: December 29, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]StyleSheet Conditioning

Copyright © 1996-2020 Information Builders