This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 6, 2011, 5:04 PM
25 Posts

How to have @Newlines be rendered as line returns on an xpage

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
I have a field in a notes document called history

An example of a value stored in that field :

"Betsy Thiede created request on 09/06/2011 12:26:34 PM.
---------------------
Betsy Thiede submitted request on 09/06/2011 12:26 pm.
---------------------"

at the end of 12:26:34 PM. and ------------------------ and 12:26 pm and ------------------ I have an @Newline

works lovely in the notes client.

When I displayed this field on the browser, I used the following formula:
@replacesubstring(history;@newLine;"<br>")

that worked lovely as well..

Now I am trying to display in an xpage..

it is being displayed like this:

Betsy Thiede created request on 09/06/2011 12:26:34 PM.<br>---------------------<br>Betsy Thiede submitted request on 09/06/2011 12:26 pm.<br>---------------------<br>

What would I need to do to have my @newlines be recognized as line breaks in an xpage.

thanks so much in advance..
Sep 6, 2011, 5:45 PM
298 Posts
Set the control to render HTML
In the first tab of the control: Howard
Sep 6, 2011, 8:12 PM
25 Posts
Re: How to have @Newlines be rendered as line returns on an xpage
Thanks! That worked

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal