Go Back   Forum - BIRT Exchange > Designing BIRT Reports Forums > Designing BIRT Reports
FAQ Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2008, 08:45 AM
Junior Member
 
Join Date: Sep 2008
Posts: 6
Default How to change column width dynamically?

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!
Reply With Quote
  #2 (permalink)  
Old 11-21-2008, 09:24 AM
Senior Member
 
Join Date: May 2008
Posts: 1,058
Send a message via Yahoo to mwilliams
Default

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.
__________________
Regards,

Michael
Reply With Quote
  #3 (permalink)  
Old 11-21-2008, 09:00 PM
Junior Member
 
Join Date: Sep 2008
Posts: 6
Default

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.
Attached Files
File Type: rptdesign scripttest.rptdesign (12.9 KB, 6 views)
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 06:07 PM.


Content Relevant URLs by vBSEO 3.1.0