Data field with different font colors
Hello <br />
<br />
i get from my datasource two colums "space" and "name" (both type String).<br />
<br />
Now i want in the report one data field like:<br />
BirtStr.concat(dataSetRow["space"],dataSetRow["name"])<br />
<br />
Is it possible to make dataSetRow["space"] in another font color?<br />
<br />
E.g. dataSetRow["space"] should be white and dataSetRow["name"] should be black?<br />
<br />
Or is there another option to make two different font colors? <a class='bbc_url' href='http://www.birt-exchange.org/org/forum/public/style_emoticons/'>http://www.birt-exchange.org/org/forum/public/style_emoticons/</a><#EMO_DIR#>/confused.gif <br />
<br />
<br />
Thanks and Regards <br />
Benni
<br />
i get from my datasource two colums "space" and "name" (both type String).<br />
<br />
Now i want in the report one data field like:<br />
BirtStr.concat(dataSetRow["space"],dataSetRow["name"])<br />
<br />
Is it possible to make dataSetRow["space"] in another font color?<br />
<br />
E.g. dataSetRow["space"] should be white and dataSetRow["name"] should be black?<br />
<br />
Or is there another option to make two different font colors? <a class='bbc_url' href='http://www.birt-exchange.org/org/forum/public/style_emoticons/'>http://www.birt-exchange.org/org/forum/public/style_emoticons/</a><#EMO_DIR#>/confused.gif <br />
<br />
<br />
Thanks and Regards <br />
Benni
0
Comments
-
Hi,<br />
<br />
If it is a static requirement then you can simply select the column then click on properties -> General -> Background color and choose the color you want.<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="'Benni'" data-cid="115738" data-time="1365155963" data-date="05 April 2013 - 02:59 AM"><p>
Hello <br />
<br />
i get from my datasource two colums "space" and "name" (both type String).<br />
<br />
Now i want in the report one data field like:<br />
BirtStr.concat(dataSetRow["space"],dataSetRow["name"])<br />
<br />
Is it possible to make dataSetRow["space"] in another font color?<br />
<br />
E.g. dataSetRow["space"] should be white and dataSetRow["name"] should be black?<br />
<br />
Or is there another option to make two different font colors? <a class='bbc_url' href='http://www.birt-exchange.org/org/forum/public/style_emoticons/'>http://www.birt-exchange.org/org/forum/public/style_emoticons/</a><#EMO_DIR#>/confused.gif <br />
<br />
<br />
Thanks and Regards <br />
Benni<br /></p></blockquote>0 -
Good Day
An easy way to do this is to use a Text Report Item set to HTML they you can do the following:
<font color="red"> <value-of> row["CONTACTFIRSTNAME"] </value-of> </font> <font color="blue"> <value-of> row["CONTACTLASTNAME"] </value-of> </font>
This will allow you to show each field with a different color in the same report column.Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management