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.
has anyone been able to force a cr/lf into a text field, (not with html br tag), so that it would be respected in a pdf output? newfield/A200=oldfield1 | ? | oldfield2; its the value of the ? field i'm looking for. If i could find an example of one, (they usually show up as a little square box in a txt file), i could copy it and paste into a BYTVAL function to grab the HEXBYT of it, but i can't find one, so i tried to make one, no luck so far.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Susannah I know my colleague has found a solution for this. He does a replacement of a certain character with the formula STRREP, but the main thing is the cr/lf character.
Something like "\x0d\x0a" ?? or 0x0D and 0x0A ??
I'll let you know tomorrow.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
This translate that text to a PDF ready formatted field.
The formula TEMP_BREAK_2 translates the "#' to the proper LF character (10) and the secand command puts a non readable character in front of that by changing the "^". Now together this should do it. Maybe there is a better way....
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
I couldn't get that to work with this code (Win, v765):
SET HOLDLIST=PRINTONLY
SET ASNAMES=ON
TABLE FILE CAR
PRINT
COMPUTE TEMP_BREAK_1/A2='^#'; NOPRINT
COMPUTE TEMP_BREAK_2/A2=CTRAN(2, TEMP_BREAK_1, 35, 10, TEMP_BREAK_2); NOPRINT
COMPUTE PDF_BREAK/A2=CTRAN(2, TEMP_BREAK_2, 94, 0, PDF_BREAK); NOPRINT
COMPUTE TEST1/A100 = EDIT(COUNTRY,'99999$$$$$') | PDF_BREAK | EDIT(COUNTRY,'$$$$$99999');
BY COUNTRY NOPRINT
ON TABLE PCHOLD FORMAT PDF
END
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
T, can you put this into a car fex? i'm just not getting it . are you saying create a character/A2 = HEXBYT(13,'A1')|HEXBYT(10,'A1'); stick that intothe middle of my output new/A10=OLD | character | OLD2; If so, then where does the LINEBREAK=LF go? is it a style sheet attribute like TYPE=DATA,COLUMN=new,LINEBREAK=LF ?? or am i making this all up?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
SET HOLDLIST=PRINTONLY
SET ASNAMES=ON
TABLE FILE CAR
PRINT
COMPUTE TEMP_BREAK_1/A2='^#'; NOPRINT
COMPUTE TEMP_BREAK_2/A2=CTRAN(2, TEMP_BREAK_1, 35, 10, TEMP_BREAK_2); NOPRINT
COMPUTE PDF_BREAK/A2=CTRAN(2, TEMP_BREAK_2, 94, 0, PDF_BREAK); NOPRINT
COMPUTE TEST1/A100 = EDIT(COUNTRY,'99999$$$$$') | PDF_BREAK | EDIT(COUNTRY,'$$$$$99999');
BY COUNTRY NOPRINT
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,LINEBREAK='LF',$
ENDSTYLE
END
This works in 7.6.5.
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
DEFINE FILE CAR
CR/A1 = HEXBYT(13, 'A1');
LF/A1 = HEXBYT(10, 'A1');
CRLF/A2 = CR || LF;
ABC5/A30=CAR || CRLF || COUNTRY;
END
TABLE FILE CAR
SUM ABC5 BY CAR BY COUNTRY
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,LINEBREAK='CRLF',$
ENDSTYLE
END
GOT IT! THANK YOU T, FRANKIE, AMSTERDAM,ALAN! 'Nashville Iced Tea' on me!
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003