Saturday, October 24, 2015

How to wrap data attributes in Birt Report

Below function would be useful for wrapping the data present in a field.

if(dataSetRow["description"]!=null){
function wrap(longStr,width){ length = longStr.length; if(length <= width) return longStr; return (longStr.substring(0, width) + "\n" + wrap(longStr.substring(width, length), width)); }wrap( dataSetRow["description"], 15 );
}

in the above function, i am trying to wrap description field to a size of 15.

Only disadvantage of this is that it includes hard stops so after every 15 characters which can be frustrating to a user who uses the report in a excel sheet.

----------------------------------------------------------------------------
All the messages below are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.

8 comments:

Unknown said...

it's good to be here and read some interesting posts , i got very useful information over here thanks for sharing it .
UPTET Answer key

Unknown said...

Thanks for such very great information. This is the best sites for proving such kinds of good information. CBSE UGC NET Answer Key

Unknown said...

amazing post thanks a lot sharing with us.
JIPMER MBBS Application form 2017
JIPMER MBBS application form 2017
JEE Main 2017 Answer key
SAAT Medical Result 2017
BHU PAT Application form 2017
4 Cancer Stages (Cancer Staging)

Unknown said...

amazing information thanks a lot sharing with us.
How to download NEET Admit card 2017 on 15th April
BARC Stipendiary Trainee Result 2017
Maharashtra SET Admit Card 2017
Odisha Postman Admit Card 2017
TNTET Admit Card 2017
JEE Main Result 2017

Unknown said...

Sharing with us great information..
http://www.engineering.examhelpline.in/jee-main-result
http://www.engineering.examhelpline.in/gitam-gat-result
http://www.competition.examhelpline.in/kpsc-excise-si-guard-admit-card
http://www.medical.examhelpline.in/aiims-pg-admit-card
http://www.medical.examhelpline.in/neet-answer-key-by-career-point
http://www.medical.examhelpline.in/how-to-download-neet-admit-card

Josh said...

This is one of the most important pieces of information for me. And I enjoyed reading your article. Also, I'm happy to provide a fantastic post about Minecraft BSL Shaders . I hope you love this shader set as much as I do. BSL Shader is available for download here.

Linda Martin said...

Obrigado por este site. Eu aprecio seu trabalho. muito bom eu tenho um site que muda sua fonte no Insta, Facebook, Snapchat, e outras redes sociais se você quiser mudar seu nome de usuário Visite Letras fontes de letras

Kristy said...

This is excellent information for everyone. I get a lot of useful information. Thank you a lot. By the way, I feel happy to share a fantastic article about digital marketing. SEO is really an integral part of digital marketing. It is responsible to take your website visibility to a higher position and keep you up above all your competitors.

Post a Comment