Troubleshooting
Problem
Consider an item of the following format - Item 1
When used in an order and viewed on the UI of Web Call Center, the item is displayed as Item 1
This is also observed on the screens of Application Console and IBM Sterling Business Console.
This is also observed on the screens of Application Console and IBM Sterling Business Console.
Cause
The browser being used for the applications is causing this trimming of multiple spaces
Diagnosing The Problem
It is seen that the API output has the item details with extra spaces for the item description and this is passed to the UI correctly. However, in html, the value is displayed in an html span tag causing the browser to truncate the extra spaces.
Resolving The Problem
The application can be customized to achieve the requirement.
1. Looking into the option of having the content inside an html <pre> element that will display the content as it is without trimming the whitespace. Or have a CSS white-space rule like "white-space: pre;"which displays the content with the spaces.
2. You could also look into a custom styling to have a white-space rule for the html element with content with extra spaces , this can be applied across screens where the issue is observed.
1. Looking into the option of having the content inside an html <pre> element that will display the content as it is without trimming the whitespace. Or have a CSS white-space rule like "white-space: pre;"which displays the content with the spaces.
2. You could also look into a custom styling to have a white-space rule for the html element with content with extra spaces , this can be applied across screens where the issue is observed.
Document Location
Worldwide
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF043","label":"Red Hat"},{"code":"PF026","label":"Reliant UNIX"}],"Version":"9.4,9.5,10.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Was this topic helpful?
Document Information
Modified date:
22 May 2019
UID
ibm10885320