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



Mar 24, 2011, 3:41 PM
8 Posts

Line breaks and whitespaces in repeaters

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Repeater,String,Format
  • Replies: 2
Hi, 
 
i have a small problem. In a repeater I want to display some values from the document (rowData). I use getItemValue or getItemValueString. That works fine, but more whitespaces in a row and line breaks will be ignored! I think it is because of the repeater, it does not like line breaks.
 
Any help? 
 
Greetings, 
Michael 
Mar 25, 2011, 2:03 AM
39 Posts
Re: Line breaks and whitespaces in repeaters
 Can you post a code snippet, Not quite sure I get what's happening.  I've used both <br /> and <xp:br /> inside of repeat controls.
 
Thanks 
-Toby 
Mar 25, 2011, 7:31 AM
8 Posts
Re: Line breaks and whitespaces in repeaters
 Hi,
 
I have a label in a repeater with a code like this, should be clear what I do, I hope: 
 
try{
getMainDoc(rowData.getItemValue("MainDocID")).getItemValue("Description");
}catch(e){
return e;
}
 
//Michael 

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