Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Wrapping Text
bokya
hi
please tell me where to paste these belows code=>
function wrap(longStr, width){
length = longStr.length(); if(length <= width)
return longStr;
return (longStr.substring(0, width) + "\u200B" + wrap(longStr.substring(width, length), width));
}
and from where do i call these function.
because in my Report i am having table, table is having data set field to which i am assigning values by using Scripted Data source on Open Script of data set. and that Field is nothin but "description". means description can be very large.. but because of this single field othere filds are getting off. so i want to give Wrap code( apply this above code) for description field ,so please let me where do i paste above given code and from where i should call this function.
thanks,
Find more posts tagged with
Comments
mwilliams
Does your text not wrap on its own? Maybe I'm confused. Can you explain more? Maybe a screenshot? What is your BIRT version? Let me know.
johnw
If you used this, you would paste it in the initialize event handler, and then you can call it from anywhere.
But like Michael, I'm a little confused. Are you data fields not wrapping correctly? Have you gone into the data element, and checked in the Property Editor/Advanced/Whitespace setting to see if it is set to wrap?