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.
-DEFAULT &WFFMT = 'PDF'
DEFINE FILE CAR
MODBOD/A40 = MODEL || (' ' | BODYTYPE);
END
TABLE FILE CAR
PRINT SEATS
BY COUNTRY
ACROSS MODBOD AS ''
IF COUNTRY EQ 'ITALY' OR 'ENGLAND'
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,$
TYPE=REPORT, FONT='VERDANA', SIZE=8,$
TYPE=ACROSSVALUE, WRAP=2.00, WIDTH=2.00,$
TYPE=ACROSSTITLE, WRAP=2.00, WIDTH=2.00,$
ENDSTYLE
END
If I run this code in HTML, the column headers get wrapped over several lines. But in PDF I seem to be unable to have the values in the acrosstitle wrapped. They show on one line, no matter what I do. Any idea(s)?This message has been edited. Last edited by: Kerry,
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Dare I say this is a bug, and it has been around for a very long time?
I tried using the GUI in Dev Studio to create a simple report with an ACROSS. You can double-click the ACROSS field, select "Active Object" as "Column Title And Data" then change "Column Layout" to "Wrap" with "Limit to" 1.00 inches. It generates some code that does not work - the wrap is not applied, and I think the generated code is no good:
-DEFAULT &WFFMT = 'PDF'
-SET &H=IF &WFFMT NE 'PDF' THEN ' ' ELSE '-*';
-SET &P=IF &WFFMT EQ 'PDF' THEN ' ' ELSE '-*';
DEFINE FILE CAR
MODBOD/A40 = MODEL || (' ' | BODYTYPE);
PARAG/A40 = PARAG(40, MODBOD, '\', 20, 'A40');
PART1/A20 = GETTOK(PARAG, 40, 1, '\', 20, 'A20');
PART2/A20 = GETTOK(PARAG, 40, 2, '\', 20, 'A20');
END
TABLE FILE CAR
PRINT SEATS
BY COUNTRY
-* for HTML:
&H.EVAL ACROSS MODBOD AS ''
-* for PDF:
&P.EVAL ACROSS MODBOD NOPRINT
&P.EVAL ACROSS PART1 AS ''
&P.EVAL ACROSS PART2 AS ''
IF COUNTRY EQ 'ITALY' OR 'ENGLAND'
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,$
TYPE=REPORT, FONT='VERDANA', SIZE=8,$
ENDSTYLE
END
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005