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     wordwrap in PDF format with ACROSS and OVER

Read-Only Read-Only Topic
Go
Search
Notify
Tools
wordwrap in PDF format with ACROSS and OVER
 Login/Join
 
Virtuoso
posted
In a report request like the following...

SET HOLDLIST=PRINTONLY, ASNAMES=MIXED
TABLE FILE IBIMAGN/CENTURYREVIEWS
PRINT EMAILDATE AS DATE
EMAILSUBJECT/A50 AS SUBJECT
EMAILSENTIMENTIMPRESSION/A50 AS IMPRESSION
EMAILFROMNAME/A25 AS NAME
ON TABLE HOLD
END
TABLE FILE HOLD
  SUM 
        MAX.DATE AS DATE:
  OVER  MAX.SUBJECT AS SUBJECT:
  BY NAME AS FROM
  ACROSS IMPRESSION    AS IMPRESSION
IF NAME CONTAINS 'A' OR 'B' OR 'C'
IF IMPRESSION CONTAINS 'Positive'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
 GRID=ON, PAGESIZE=LEDGER,ORIENTATION=PORTRAIT, FONT=ARIAL,SIZE=8,$
ENDSTYLE
END


...I want to limit the width of the report columns in which the verb objects (here, MAX.DATE and MAX.SUBJECT) are stacked, and wrap the stacked values (so that the DATE will appear as
yyyy-mm-dd
hh:mm:ss.mmm
)

Is there STYLE syntax that will accomplish that?

I tried styling it in the GUI, to no avail. It didn't choke on the ACROSS and OVER combination, but the preview ignored the "OVER" entirely.

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
Hi,
By changing GRID to BORDER, I was able to control the WRAP for each column. But with title enabled for DATE: and SUBJECT: wrap is not working as expected. So added these as text along with date for more control on WRAP. Try below code.

SET HOLDLIST=PRINTONLY, ASNAMES=MIXED
 
TABLE FILE IBIMAGN/CENTURYREVIEWS
PRINT EMAILDATE AS DATE
EMAILSUBJECT/A50 AS SUBJECT
EMAILSENTIMENTIMPRESSION/A50 AS IMPRESSION
EMAILFROMNAME/A25 AS NAME
ON TABLE HOLD
END
-RUN
DEFINE FILE HOLD
DATE_A/A20 = HCNVRT(DATE, '(HYYMDS)', 20, 'A20');
DATE_N/A40 = '<B>DATE:</B> ' | DATE_A;
SUBJECT_N/A1020='<B>SUBJECT:</B>' | SUBJECT;
END 
TABLE FILE HOLD
SUM 
MAX.DATE_N AS ''
OVER  MAX.SUBJECT_N AS ''
BY NAME AS FROM
ACROSS IMPRESSION    AS IMPRESSION
IF NAME CONTAINS 'A' OR 'B' OR 'C'
IF IMPRESSION CONTAINS 'Positive'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
BORDER=ON, PAGESIZE=LEDGER,ORIENTATION=PORTRAIT, FONT=ARIAL,SIZE=8, MARKUP=ON, $
TYPE=REPORT, COLUMN=N1, WRAP=1.00, $
TYPE=REPORT, COLUMN=N2, WRAP=1.25, $
TYPE=REPORT, COLUMN=N3, WRAP=2.50, $
TYPE=REPORT, COLUMN=N4, WRAP=1.25, $
TYPE=REPORT, COLUMN=N5, WRAP=2.50, $
ENDSTYLE
END


Hope this helps.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Virtuoso
posted Hide Post
Thanks, Ram.

But I'd prefer the original layout, if IBI will correct three obvious bugs in the PDF rendition of the report.

1. In the first (left-most) across-value column, the word-wrap places the continuation line's text off to the left of the data cell.

2. The boxes enclosing the across title, and first across value, are incorrectly placed (starting over the title cells in the data rows, rather than over the first across value's column.

3. The page-break splits a logical detail row, placing the first verb object (Date) on page 1 and the second (Subject) on page 2, rather than deferring the entire detail row to page 2. This happens even if you specify NOSPLIT.

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
Here's a repro to illustrate the three issues.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TABLE FILE IBIMAGN/CENTURYREVIEWS
SUM 
FST.EMAILDATE AS DATE
FST.EMAILSUBJECT/A50 AS SUBJECT
FST.EMAILSENTIMENTIMPRESSION/A50 AS IMPRESSION
FST.EMAILFROMNAME/A25 AS NAME
BY EMAILSENTIMENTIMPRESSION NOPRINT
BY EMAILFROMNAME NOPRINT
ON TABLE SET HOLDLIST PRINTONLY AND ASNAMES MIXED
ON TABLE HOLD
END
 
TABLE FILE HOLD
SUM  DATE AS 'Date:'
OVER SUBJECT AS 'Subject:'
BY NAME AS 'From' NOSPLIT
ACROSS IMPRESSION    AS 'Impression'
IF NAME CONTAINS 'A' OR 'B' OR 'C'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
BORDER=ON, PAGESIZE=LETTER, ORIENTATION=LANDSCAPE,FONT='COURIER NEW', SIZE=8, SQUEEZE=ON, $
TYPE=TITLE,BACKCOLOR=YELLOW,$
TYPE=ACROSSTITLE,BACKCOLOR=YELLOW,$
TYPE=ACROSSVALUE,BACKCOLOR=AQUA,$
ACROSSCOLUMN=P1, WRAP=1.05, $
ACROSSCOLUMN=P2, WRAP=1.05, $
ENDSTYLE
END
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


I'm curious whether the problem already existed in earlier, or was introduced with the recent rewrite of PDF rendition.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Guru
posted Hide Post
I don't have CENTURYREVIEWS. Do you have sample using CAR or GGSALES?
Did you try setting the default WRAP for the report? I couldn't go smaller than 0.25 with out blowing up the reporting server.
Then you can increase the WRAP as needed on the reporting components you access through the style sheet.
  
TABLE FILE GGSALES
SUM
    FST.DATE
	FST.UNITS
	FST.PRODUCT
	FST.REGION
BY REGION NOPRINT
BY PRODUCT NOPRINT
ON TABLE SET HOLDLIST PRINTONLY AND ASNAMES MIXED
ON TABLE HOLD
END
-RUN
 
TABLE FILE HOLD
SUM  DATE AS 'Date:'
OVER UNITS AS 'Units:'
BY PRODUCT AS 'Product' NOSPLIT
ACROSS REGION AS 'Region'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
BORDER=ON, PAGESIZE=LETTER, ORIENTATION=LANDSCAPE,FONT='COURIER NEW', SIZE=8, SQUEEZE=ON, $
TYPE=REPORT,WRAP=0.25,$
TYPE=REPORT,ACROSSCOLUMN=P1,BACKCOLOR=SILVER,WRAP=0.25,$
TYPE=REPORT,ACROSSCOLUMN=P2,BACKCOLOR=PINK,WRAP=0.25,$
TYPE=REPORT,COLUMN=P1,BACKCOLOR=RED,WRAP=0.75,$
TYPE=TITLE,BACKCOLOR=GREEN,$
TYPE=ACROSSTITLE,BACKCOLOR=YELLOW,$
TYPE=ACROSSVALUE,BACKCOLOR=AQUA,$
ENDSTYLE
END
-RUN


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report 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     wordwrap in PDF format with ACROSS and OVER

Copyright © 1996-2020 Information Builders