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



Jul 22, 2011, 12:53 PM
31 Posts

Re: Multi-line text wrapping

  • Category: Other
  • Platform: Not Applicable
  • Release: 8.5.2
  • Role: Developer
  • Tags: formatted text string new line wrapping
  • Replies: 17
I know what you mean about the weird breaking on spaces & stretching beyond the window -- that's why I ended up doing what I did, changing the form field to be multi-values.  I'll give your solution a shot the next time I bump into this -- thanks!
 
But I wonder if you couldn't just use the converters & instead of doing:
 
                    <xp:this.converter>
                            <xp:customConverter>
                                <xp:this.getAsObject><![CDATA[#{javascript:@Explode(value,"\n");}]]></xp:this.getAsObject>
                                <xp:this.getAsString><![CDATA[#{javascript:@Implode(value,"\n");}]]></xp:this.getAsString>
                            </xp:customConverter>
                        </xp:this.converter>
 
you could do something like this:
 
                        <xp:this.converter>
                            <xp:customConverter>
                                <xp:this.getAsObject><![CDATA[#{javascript:@Explode(value,"\n");}]]></xp:this.getAsObject>
                                <xp:this.getAsString><![CDATA[#{javascript:@Replace(@Implode(value,"\n");" ";"&nbsp;");}]]></xp:this.getAsString>
                            </xp:customConverter>
                        </xp:this.converter>
 
Not sure if you'd have to alter the getAsObject part as well to get it back into the Notes field properly.  Haven't tried this so I don't know if it would work.
Jul 22, 2011, 6:51 PM
14 Posts
Re: Multi-line text wrapping
Took your suggestion, and tried the @Replace(@Implode(value,"\n");" ";"&nbsp;") in the custom converter.  Had the same problem with the line-wrapping.

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