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     Wrapping line on a delimiter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Wrapping line on a delimiter
 Login/Join
 
Member
posted
I have a field with Member Names formatted as LastName, Firstname
I want the report to WRAP on the comma.
For example Smith, Joe should print like this:

Member Name
Smith,
Joe

Watts,
Michael

Goralczyk,
Elizabeth


WRAP does not help much with this requirement.


8.0.03/Windows7
 
Posts: 13 | Registered: July 02, 2014Report This Post
Expert
posted Hide Post
If it's for HTML only, you can use the string substitution function to replace the comma by a line break (,
). This *might* work for Excel. I don't think there's any way to do it for PDF.


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
Expert
posted Hide Post
I think the only way to do this for all outputs is to convert the blocks delimited by the comma to rows.

Perhaps Macgyver method will work, not knowing the structure of the report.


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
Member
posted Hide Post
The output format is PDF. There are several columns in the report that need to be on multiple lines. Some will use commas as the delimiter and others will use spaces. The Crystal report sample does it very nicely - I was hoping I could duplicate what they did in Crystal.


8.0.03/Windows7
 
Posts: 13 | Registered: July 02, 2014Report This Post
Expert
posted Hide Post
How does the Crystal Reports program do it?


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
Yes, WebFOCUS supports line breaks within PDF report columns.

-* File PDFSkipLine.fex
APP PREPENDPATH IBISAMP
-*
DEFINE FILE GGSALES
-* Create data to match requirements.  
 MEMBERNAME/A40 = DECODE SEQ_NO (1 'Briars, David'
                                 2 'Watts, Michael');
-* Convert comma delimiter to carriage return.  
 MNAME_OUT/A40 = CTRAN(40, MEMBERNAME, 044, 013 , 'A40');
END
-*
TABLE FILE GGSALES
PRINT SEQ_NO 
      MEMBERNAME
      MNAME_OUT AS 'Member, Name'
      REGION
IF RECORDLIMIT LE 2
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
 TYPE=REPORT, FONT=ARIAL, SIZE=10, SQUEEZE=ON,$
 TYPE=REPORT,LINEBREAK='CR',$
ENDSTYLE
END  




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
Best answer David!


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
Expert
posted Hide Post
Nice, Good One


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
Member
posted Hide Post
David, thank you - that is EXACTLY what I am looking for. U da man!!!!

Thank you sooo much.


8.0.03/Windows7
 
Posts: 13 | Registered: July 02, 2014Report 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     Wrapping line on a delimiter

Copyright © 1996-2020 Information Builders