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     [CLOSED] Ampersands in XML output format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Ampersands in XML output format
 Login/Join
 
Virtuoso
posted
I have a launch page that uses the below code in an embedded procedure:
TABLE FILE rp_rm_dw_project
SUM FST.RP_RM_DW_PROJECT.RP_RM_DW_PROJECT.PRJID
 BY RP_RM_DW_PROJECT.RP_RM_DW_PROJECT.PRJNAME
WHERE PRJNAME LIKE '_.%';
ON TABLE PCHOLD FORMAT XML
END


Unfortunately, the contents of PRJNAME sometimes contain ampersands (&), which in the generated XML are copied verbatim instead of being turned into an XML entity (& amp; ). For example:
<td colnum="c0">4. R&D Program</td>


The net effect is that (in Internet Explorer) entries in my dropdown are cut off before the ampersand!

Although I have to admit that it's stupid of IE to interpret non-entities as entities, that ampersand probably should have been escaped in the XML already.

So, I have a few questions:

  • Is this a known issue?
  • What's a good workaround that I can use in an embedded procedure? Do I really need to create a HOLD-file (my hopefully temporary work-around) to solve this?

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
You can try to replace the & value in the fields of your database.

Create a defined field NEW_PRJNAME with the same size and use a formula to replace the & for an other character (+)




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, 2006Report 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     [CLOSED] Ampersands in XML output format

Copyright © 1996-2020 Information Builders