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



Aug 3, 2011, 2:16 AM
19 Posts
topic has been resolvedResolved

How to format text field with @NewLine

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags: formatted text string
  • Replies: 2
 Hi All,
I have a computed field with the following formula:
var numbers = "";
numbers = empDocument.getItemValueArray( "EmpNumbersAll" );
numbers = @Implode(numbers,"<br>");
if( numbers == null )
{
        numbersR = "None";
}else
{
    numbersR = numbers;
}
numbersR;
 
The string that displays is 847.555.1212<br>212.555.1212
 
All I want to do is put each entry on a new line.  I've tried using @NewLine instead of "<br>".  Can't seem to get it to format the way I want.  Any ideas?
Aug 3, 2011, 2:34 AM
19 Posts
Re: How to format text field with @NewLine
Changed the field type to HTML and used <br>
Aug 4, 2011, 7:49 PM
1 Posts
Re: How to format text field with @NewLine
i had a similar prblem when i wanted to add previous action in a history field with every previous action starting from new line. 
 
i hope this might  work... 
 
 
  var i= dominoDocument1.getItemValue("itemName")+"/n";
 dominoDocument1.replaceItemValue("itemName");
dominoDocument1.save(); 


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