Data field with different font colors

Benni
edited February 11, 2022 in Analytics #1
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

Comments

  • Shasha
    edited December 31, 1969 #2
    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>
  • bricombs
    edited December 31, 1969 #3
    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 ipb
  • Benni
    edited December 31, 1969 #4
    Hi Bricombs,

    thank you very much...

    This is the solution :D