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)
Data Classes
fae1
I am very new to Birt, and I am having trouble trying to establish a condition in the formatting of a data column. I tried using java script and it does not work. I thought of using the expression builder, but I am not sure if this will help.
Can anybody give me some ideas?
Is there any sample reports out there?
Find more posts tagged with
Comments
Virgil Dodson
Hi fae1,
There are many examples in the DevShare area of BIRT Exchange. You can also find examples in the BIRT Designer by selecting Window | Show View | Other... Then select Report Examples from the Report and Chart Design options.
... as for formatting data columns, you can define the type (String, Date, Integer, etc) from the Select Columns tab of the Data Set. You can also create new columns in the Computed Columns tab if you need to transform another column into something else... and finally, you can format the data elements, like Short Date, number formatting, etc, from the Property Editor view once you add the Data element to the report design and select it.
fae1
Please can you specify where exactly. I have searched around and could not find anything that answers the question.
I have tried and am always getting a error valuating script error message appearing.
What i would like to do is for example, conditional formatting of a text box based on the value of another column been returned by the data set.
Thanks
Virgil Dodson
Hi fae1,
It is easy to get conditional formatting on a Data element in BIRT without using scripting. To do this, select the Data element and then the Highlights tab. Press the Add button and you can create an expression that looks at the value of any column in the row. You can then decide the formatting, like font color, background, etc. when the condition is met.
A simple example is enclosed that highlights customer name and number when another column, credit limit, is less than 1000.