Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to change column width dynamically?
yangzy666
Hi,guys,
I want to change a column's width dynamically with BIRT API!But i don't know which API i can use.Model API or script API?
I'm very thankful if you can show me some scriptnets.
Thanks in advance!
Find more posts tagged with
Comments
mwilliams
Hi yangzy666,
Are you using the designer or just the BIRT engines?
In the designer, there is no scripting on individual columns, but the width of the data elements can be set in script which would essentially change the width of the column using this.width = "2in" or whatever. This uses the DEAPI.
yangzy666
yes.i can use this.width="2in" to change the width of the data elements,but it's just the data element's text width(or the line surrounding it) has changed,not the line surrounding the cell,namely,if i can change the cell's width,then i'll implement my goal---change the width of the columns.
I give you an attachment,and maybe you can see the effect.