Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Script to set row height depending on dataset value
Script to set row height depending on dataset value [message #964395] Tue, 30 October 2012 13:31 Go to next message
Anna T. is currently offline Anna T.Friend
Messages: 4
Registered: June 2012
Junior Member
Hello,

Is there a way to set the height of a table row with a script depending on a value coming from the dataset?

Lets say if NoOfSomething = 1 then the row Height should me 10pt and when NoOfSomething = 2 it should be 2 * 10pt.

Thank you very much in advance,
Re: Script to set row height depending on dataset value [message #964570 is a reply to message #964395] Tue, 30 October 2012 16:23 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

If NoOfSomething is a dataSet field, you should be able to do something like this in your onCreate script, for your row:

ht = row["NoOfSomething"] * 10;

this.height = ht.toString() + "pt";


Michael

Developer Evangelist, Silanis
Re: Script to set row height depending on dataset value [message #1798142 is a reply to message #964570] Tue, 13 November 2018 09:47 Go to previous message
Rajesh Varatharajan is currently offline Rajesh VaratharajanFriend
Messages: 2
Registered: October 2017
Junior Member
Can i able to set row height for all rows in an report. For ex, i will give row height input as 0.88 through report parameter. How to set to to all rows
Previous Topic:birt report does not return time correctly
Next Topic:Column width gets ignored when exporting to .xlsx
Goto Forum:
  


Current Time: Sat Aug 24 08:48:40 GMT 2019

Powered by FUDForum. Page generated in 0.02083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top