HP Service Manager web client “Read Only” fix
June 16, 2010
“Read-only” fields do not display in the web client
The following fix come directly from HP – there is a bug where read-only fields will not display correctly web clients. Using the steps below should fix this problem:
Having problems with ‘read-only’ fields not displaying values and display lists correctly on your Web Client?
There is a hidden fix for the 'read only' issue in the web client that involves modifying the ‘topaz.js’ file, which is located under the ‘js’ directory in the Web-Tier folder structure (example: C:Program FilesApache Software FoundationTomcat 5.5webappswebtier-7.11js).
To fix the issue with ‘read-only’ fields not displaying values and display lists correctly on your Web Client, the following tasks must be done to resolve the issue.
1. Search for the following function
"function setComfillReadonly(field, sValue)"
in the topaz.js file.
You will see the following lines in this function:
if (dvdTrue(sValue))
{
field.style.display = "none";
field.style.visibility = "hidden";
fieldReadonly.style.display = "";
fieldReadonly.style.visibility = "";
2. After the line that executes: fieldReadonly.style.visibility = "";
add the following line: fieldReadonly.value = field.value;
3. Then restart the Application Server (Tomcat, WAS, etc).
Comments
Got something to say?