Fixes are available
Rational Host Access Transformation Services, Version 7.5.0.1
Rational Host Access Transformation Services, Version 7.1.0.4
Rational Host Access Transformation Services, Version 7.1.0.5
Rational Host Access Transformation Services, Version 7.1.0.6
Rational Host Access Transformation Services, Version 7.5.0.2
Rational Host Access Transformation Services, Version 7.5.1.1
Rational Host Access Transformation Services, Version 7.5.1.2
Rational Host Access Transformation Services, version 7.5.1.3
Rational Host Access Transformation Services Fix Pack 4 (7.5.1.4) for 7.5.1
Rational Host Access Transformation Services Fix Pack 5 (7.5.1.5) for 7.5.1
Rational Host Access Transformation Services Fix Pack 6 (7.5.1.6) for 7.5.1
APAR status
Closed as program error.
Error description
There is a problem using the text replacement feature in HATS. When you try to replace some text with a link in the text replacement tool the page displays correctly but when you click on the new link the browser throws a JavaScript error and the link does not work. After looking into the error and the code that the text replacement tool is generating I found the problem. Here is an example of the code generated by HATS: <a accesskey="HATSForm" href="javascript:ms('[pf12]', HatsForm);" class="HATSLINK" name="[pf12]">Cancel</a> The error is that the single quotes around the string HatsForm in the ms command are missing. As a result the JavaScript is interpreting the HatsForm as a variable instead of a string.
Local fix
Manually add the quotes around HatsForm in the ms command.
Problem summary
**************************************************************** * USERS AFFECTED: Developers using text replacement to * * replace text with HTML links. * **************************************************************** * PROBLEM DESCRIPTION: Replacing host screen text with an * * HTML link does not work at runtime. * **************************************************************** * RECOMMENDATION: * **************************************************************** The Toolkit generates incorrect HTML when text replacement is used to replace host screen text with an HTML link.
Problem conclusion
Incorrect HTML is generated when using text replacement to replace text with an HTML link. For example, this HTML code is generated when using text replacement: <a accesskey="HATSForm" href="javascript:ms('[pf12]',HatsForm);" class="HATSLINK" name="[pf12]">Cancel</a> The string HatsForm is a String, not a variable and, therefore, must be enclosed in single quotes. Without the single quotes around HatsForm, the page throws a JavaScript error during runtime. The HATS Toolkit code was changed to generate the correct HTML code.
Temporary fix
Comments
APAR Information
APAR number
IC60353
Reported component name
RATL HATS FOR 5
Reported component ID
5724U6800
Reported release
710
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-03-11
Closed date
2009-04-16
Last modified date
2009-04-16
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
HATSSTUD
Fix information
Fixed component name
RATL HATS FOR 5
Fixed component ID
5724U6800
Applicable component levels
R710 PSY
UP
R750 PSY
UP
Document Information
Modified date:
16 April 2009