Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Extra spaces trimmed in between words from a column

SA-8779

Summary



When values are stored using spaces in between, the extra spaces are trimmed.

Error Messages



Not Applicable.

Steps to Reproduce



1. Store some column with spaces in between.
2. Retreive values through report definition.


Root Cause



 HTML rules by default truncate multiple spaces to single space.

Resolution



This issue is resolved through the following local-change:

Create a custom control with <pre> tags enclosed. This newly created custom control is used in the RepeatGrid to display the value of that specific property with multiple spaces.

Following is an example:


<% 
String subj = tools.getActiveValue();
tools.putSaveValue("result", subj);
 %>
<pre><pega:reference name='$save(result)' mode="NORMAL" /></pre>


However the CSS changes, this newly created control displays differently from other fields. 
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

33% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us