Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Using row[] or <VALUE-OF> data in an HTML 'Text' Field(How do I use an if-statement for a row value in an HTML text field?)
Using row[] or <VALUE-OF> data in an HTML 'Text' Field [message #1708601] Fri, 18 September 2015 04:09
Chantal Hadamek is currently offline Chantal HadamekFriend
Messages: 1
Registered: September 2015
Junior Member
I think this is a pretty basic question, but for some reason I just cannot figure out or find any online help regarding how to do it.

Basically, I want to use an IF statement to test some row data and add text depending on that data. I need to use HTML in this text.

If I use a 'Dynamic Text' box, I can do the IF statement I want as follows:
(row["mytype"] == 'My Type 1'? "This is type one!" : "This isn't type one!")
... But I cannot add HTML to the text ("This is <B>type one</B>" does not render as HTML).

If I use a 'Text' box with HTML selected in the dropdown, I can do HTML (hurray), and I can get the value of the same row like:
My value type is: <B> <VALUE-OF>row["mytype"]</VALUE-OF> </B>
But if there's a way to do an IF statement in there, I can't figure out how to do it for the life of me.

Any help would be greatly appreciated.
Previous Topic:Unable to access vars from beforeRendering in nested barchart
Next Topic:OdaException
Goto Forum:
  


Current Time: Fri Apr 26 12:05:42 GMT 2024

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

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

Back to the top