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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] PDF issues
 Login/Join
 
Platinum Member
posted
I would like to achieve the 2 things mentioned below.

1)Title (CAR value - right now I am using Subhead to display that) to be on the same line with the Across Title.

2)Add a image next to the title (Next to Dealer Cost and Retail Cost).

Both not working in PDF format. Sample code is below.

TABLE FILE CAR
SUM DEALER_COST AS 'Dealer Cost' OVER
RETAIL_COST AS 'Retail Cost'
BY CAR NOPRINT
ACROSS COUNTRY AS ''
ON CAR PAGE-BREAK
ON CAR SUBHEAD
"ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,FONT=ARIAL,SIZE=9,SQUEEZE=ON,ORIENTATION=LANDSCAPE,$
ENDSTYLE
END
-EXIT

Any thoughts or suggestions.

This message has been edited. Last edited by: <Kathryn Henning>,


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Expert
posted Hide Post
We will never get the column titles on the same line as the across column titles - we've been asking for that for 10 years or so.

You place an image in a report using WebFOCUS style-sheet syntax. The image must be in a app folder on the reporting server.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Francis,

Where you can't natively do what WFDev is asking about, you can use subheads with a nasty workaround to do it.

 SET ASNAMES = ON
DEFINE FILE CAR
BY_FIELD/A20V='Dealer Cost';
END

TABLE FILE CAR
SUM
DEALER_COST AS '' 
BY CAR 
BY BY_FIELD
ACROSS COUNTRY 
ON TABLE HOLD AS HOLD1 
END

TABLE FILE HOLD1
PRINT *
ON TABLE HOLD AS USE1 FORMAT FOCUS 
END

DEFINE FILE CAR
BY_FIELD/A20V='Retail Cost';
END

TABLE FILE CAR
SUM
RETAIL_COST AS '' 
BY CAR 
BY BY_FIELD
ACROSS COUNTRY 
ON TABLE HOLD AS HOLD2 
END

TABLE FILE HOLD2
PRINT *
ON TABLE HOLD AS USE2 FORMAT FOCUS
END

 USE USE1 AS USE1
 	 USE2 AS USE1
 END

TABLE FILE SYSCOLUM
PRINT NAME
WHERE TBNAME EQ 'USE1'
WHERE NOT NAME IN ('FOCLIST','CAR','BY_FIELD')
ON TABLE SAVE AS FIELDS
END

-SET &NUM_FLDS = &LINES;
-SET &CNTR=0;
-SET &ALL_FIELD='';
-REPEAT :FIELD_LOOP WHILE &CNTR LT &NUM_FLDS

-READ FIELDS NOCLOSE &FIELD_&CNTR.EVAL.A512
-SET &FIELD_&CNTR.EVAL =  TRUNCATE(&FIELD_&CNTR.EVAL);
-TYPE &FIELD_&CNTR.EVAL
-SET &ALL_FIELD = IF &CNTR + 1 EQ &NUM_FLDS THEN &ALL_FIELD.QUOTEDSTRING | &FIELD_&CNTR.EVAL ELSE &ALL_FIELD.QUOTEDSTRING | &FIELD_&CNTR.EVAL | '<+0>';
-TYPE &ALL_FIELD
-SET &CNTR=&CNTR+1;
-:FIELD_LOOP
-SET &CNTR=0;
TABLE FILE USE1
PRINT 
-REPEAT :BY_LOOP WHILE &CNTR LT &NUM_FLDS
 '&FIELD_&CNTR.EVAL' AS ''
-SET &CNTR=&CNTR+1;
-:BY_LOOP
BY CAR NOPRINT
BY BY_FIELD AS ''

ON CAR PAGE-BREAK
ON CAR SUBHEAD
"<CAR<+0>&ALL_FIELD.EVAL"
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
	HEADALIGN=BODY,
$
TYPE=REPORT,FONT=ARIAL,SIZE=9,SQUEEZE=ON,ORIENTATION=LANDSCAPE,$
ENDSTYLE
END
 


Theres probably a better way. But this works.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Platinum Member
posted Hide Post
Eric,

Your code works good for HTML but not for PDF. If it is HTML, we can get the Column and Across Title together by setting a ACROSSTITLE=SIDE.

Thanks


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Master
posted Hide Post
WFDev,

The code works for PDF too. I made a slight adjustment to the style sheet, but I get PDF output as I expect.

 TABLE FILE USE1
PRINT 
-REPEAT :BY_LOOP WHILE &CNTR LT &NUM_FLDS
 '&FIELD_&CNTR.EVAL' AS ''
-SET &CNTR=&CNTR+1;
-:BY_LOOP
BY CAR NOPRINT
BY BY_FIELD AS ''

ON CAR PAGE-BREAK
ON CAR SUBHEAD
"<CAR&ALL_FIELD.EVAL"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,FONT=ARIAL,SIZE=9,ORIENTATION=LANDSCAPE,$
TYPE = SUBHEAD,HEADALIGN=BODY,
ENDSTYLE
END 


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders