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.
We have a number of reports that pull user comment fields from the database, and being that they're comments, they can have any text the user chose to put in. A recent example is a user put in a comment for some email addresses they copied from a mail program, so the data looked something like this:
<fred.worker@company.com> Fred Worker; <sally.admin@company.com> Sally Admin
The problem is that when running the report with comments like this, in HTML format the email just doesn't show, and in Excel, you get an error about unreadable content, then it tries to repair it, and the result is a mess of an unusable report.
In both cases, it's because the HTML or the XML (in the case of Excel output) reads it as an element, not as text, which also leads me to believe that someone could put script elements in their comments that would be executed when the report is run, which I'm not exactly afraid of since this is an internal system, but still, I can't believe there wouldn't be a way of HTML escaping a field at will.
I searched the forums, but only found stuff recommending using CTRAN or STRREP to replace individual characters, but that's an unworkable solution because we don't necessarily know what the characters will be, and again, we have a number of reports and a number of these types of comments fields.This message has been edited. Last edited by: J.Hines,
Interesting that these two functions, XMLENCOD and XMLDECOD are not specified in the WebFOCUS 8 documentation - "Nothing found." in the WebFOCUS Release 8.0 Version 08 documents.
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
Originally posted by Francis Mariani: Interesting that these two functions, XMLENCOD and XMLDECOD are not specified in the WebFOCUS 8 documentation - "Nothing found." in the WebFOCUS Release 8.0 Version 08 documents.
Embrace the GUI! It's all in there (well, in the meta-data tool in the DMC at least). The doc will catch up eventually.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
Thanks dhagen, that's helpful, but is this then on a field-by-field basis that I'd have to add a define to every report? I was hoping there'd be a setting for either the entire report or, even better, something that could be done in the master file once.