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.
Is it possible? I have a page of a compound report where all of the text formatting and variables are defined in the heading. One of those variables is a title -- a field that varies from nothing to about 200 characters. I'd like to wrap it down to the next few lines if it's long. The only way I could think to do this is to use substr -- something like this:
And then list title1, title2, title3, title4 out on separate lines in the heading. This works, but the problem is it chops words in half. Any suggestions?This message has been edited. Last edited by: BDAVIS,
DEFINE FILE CAR
LONG_LINE/A100 = 'The quick brown fox jumps over the lazy dog' ;
DUMMY/A1 WITH COUNTRY = ' ' ;
END
TABLE FILE CAR
HEADING
"<LONG_LINE"
SUM DUMMY AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=CM, PAGESIZE='A4', LEFTMARGIN=0.635000, RIGHTMARGIN=0.635000,
TOPMARGIN=0.635000, BOTTOMMARGIN=0.635000, SQUEEZE=ON,
ORIENTATION=LANDSCAPE, $
TYPE=REPORT, GRID=OFF, FONT=TIMES NEW ROMAN, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=FIELD, WRAP=2, $
ENDSTYLE
END
Thanks Waz, that worked for the most part. Is it possible to center it? I tried justify=center but no go. Also, is it possible to control the wrap width?
Using WRAP, you can't justify it, You can use a sport marker to approximate the center, but each line will still be left justified. If you wuse the PARAG function, breaking it into individual fields, each field on its own line, then the justify=center will work.
As for the second question, I would suggest when you're given code as an answer for a problem, you'll learn better if you go through the solution and play with it a little to find out why that solution fixes your problem. Just plugging in the solution and counting it good solves the problem, but you'll have the same question again in the future if you haven't learned the concept.
Hint: Play with the number after the WRAP= and see what you get.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007