conditional printing and output manipulation [message #243716] |
Wed, 20 June 2007 21:24 |
Eclipse User |
|
|
|
Originally posted by: pashakaz.gmail.com
Hello,
I'm trying to develop reports that emulate Jasper reports with as great
an accuracy as possible. JasperReports have a functionality for
"printWhen" expressions which will conditionally print or not print a
field depending on some condition. After exploring the BIRT designer and
the appropriate APIs for some time, the closest thing i found to this
functionality was the java interface IScriptedDataSetEventHandler that
lets you conditionally exclude rows of data. similar functionality does
not seem to be present in other dataset event handlers or static types.
As an example of what I'm trying to accomplish, I would like to be able to
read off of a jdbc data source. Then if the value fetched from the data
source begins with an x I want that value to not be printed. Or i would
like to append some message to any value thats less than 10 characters. I
would like to know whether this functionality exists, and if it does how
to achieve it.
|
|
|
|
|
|
Re: conditional printing and output manipulation [message #244112 is a reply to message #243893] |
Thu, 21 June 2007 20:08 |
Eclipse User |
|
|
|
Originally posted by: a.x.com
You can call the setOnRender method of the DataItemHandle class which
contains the value of individual datalements in teh report,you can set the
expression with javascript code that checks the length of teh data content
and does appropriate formatting.
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03900 seconds