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.
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 message
Michael Williams is currently offline Michael Williams
Messages: 1639
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

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Showing aggregated data in table 1 in table 2
Next Topic:JNDI configuration for BIRT report designer
Goto Forum:
  


Current Time: Wed Oct 22 03:25:29 GMT 2014

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

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