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)
FIxed lenght of character.
vijuagrawa
Hi All,
I have just started using birt and still exploring it.
In my report i want to fixed the length of my column to 10 Character(and not inn,cm,pix,etc) ,how can i achieve this.
Please help.
Find more posts tagged with
Comments
kclark
Welcome vijuagrawa! To output x characters in your table you could use something like this in the onRender() of that table object.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>this.setDisplayValue(BirtStr.left(this.getValue(), 10));</pre>
<br />
Which will output the first 10 characters. Since you know you are going to only want 10 characters each time you can set the width of that column in the designer.
vijuagrawa
thanks Kclark.
but their is no option to fixed width of column based on character,there are option in in,cms,picel etc
kclark
Is the font size going to be dynamic? If it's not you could adjust the width of the table to match the 10 character limit.
h j
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="112897" data-time="1357143451" data-date="02 January 2013 - 09:17 AM"><p>
Is the font size going to be dynamic? If it's not you could adjust the width of the table to match the 10 character limit.<br /></p></blockquote>
Hi,<br />
If the size is dynamic,then what to do??