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.
I am providing the code below. I have issue with Titletext. &MDSE is passed from a field of a table. It is 50 characters long. The field text contains "," and "'" symbols in the text. If the text is "It is Adam's desktop". My report is not executing .. Titletext only takes "It is Adam" and it does not understand what is following keyword (in this case "s desktop").
Please help how I could solve this issue. I tried changing the single quotes to double for TITLETEXT, then I have issue with the text containing ",".
TABLE FILE MTA
PRINT UDA_VAL_N
BY MDSE_TYPE_N AS ''
ACROSS ATTR_N AS ''
WHERE MDSE_TYPE_N EQ '&MDSE';
ON TABLE PCHOLD FORMAT EXL2K &FLAG
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=10,COLOR='BLACK',BACKCOLOR='WHITE',STYLE=NORMAL,BORDER=0.5,TITLETEXT='&MDSE.EVAL',$
-*TYPE=TITLE,STYLE=BOLD,COLOR='BLACK',BACKCOLOR=RGB(159 217 253),JUSTIFY=CENTER,$
TYPE=ACROSSTITLE,BORDER-LEFT=OFF,BORDER-RIGHT=OFF,BORDER-TOP=OFF,$
TYPE=ACROSSVALUE,STYLE=BOLD,BACKCOLOR=RGB(200 200 200),$
ENDSTYLE
END
This message has been edited. Last edited by: nsk110483,
In Focus since 2008 WebFOCUS 8.2.0.1 Windows 7 - IE,Chrome,Firefox Excel, PDF, HTML, AHTML, XML JavaScript, jQuery, D3.js, Highcharts
Posts: 79 | Location: New York | Registered: February 04, 2010
Naming of Worksheets. The default worksheet tab names will be Sheet1, Sheet2, and so on. You have the option to specify a different worksheet tab name by using the TITLETEXT keyword in the stylesheet. For example: TYPE=REPORT, TITLETEXT='Summary Report', $ Excel limits the length of worksheet titles to 31 characters. The following special characters cannot be used: ':', '?', '*', and '/'.
I tried a comma in a titletext attribute and it works:
-SET &TITLETEXT='TEST,REPORT';
TABLE FILE CAR
PRINT
*
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='&TITLETEXT', $
ENDSTYLE
END
-RUN
I would use CTRAN to remove the apostrophe. I would also use CTRAN to remove the other specified special characters.
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
In the past and not for titletext, I've replaced apostrophes with "Right Single Quotation Mark":
-*-- Convert Apostrophe to Right Single Quotation Mark -------------------------
-SET &VAR1 =
- CTRAN(&VAR1.LENGTH, &VAR1, BYTVAL('''','I3'), BYTVAL('’','I3'), 'A&VAR1.LENGTH');
I just tried this with TITLETEXT and it does not work well - the Right Single Quotation Mark does not display properly.
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
Since you have BY MDSE_TYPE_N coupled with WHERE MDSE_TYPE_N EQ [a unique value]; you could skip the TITLETEXT bother and just use BYTOC to name the worksheet, leaving it to webfocus to remove characters that offend Excel.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005