| Dynamic Text [message #715293] |
Sat, 13 August 2011 02:22  |
Eclipse User |
|
|
|
Dear All,
I am currently looking how to use the Dynamic text control in BIRT.
I am having an issue:
I have 3 fields in my dataset: Address1, Address2, Address3
I want to display the 3 fields concatenated in a dynamic text that i set to HTML and Dynamic. The 3 addresses are then separated by a comma (","). Yet, if an address is blank (""), i dont want to show it.
So, in the edit window, i added the following code with a javascript if statement:
if(<VALUE-OF>row["Add1"]</VALUE-OF> == "")
{
"";
}
else
{
<VALUE-OF>row["Add1"]</VALUE-OF> + ",";
}
Unfortunately, it does not seem to work. Could anyone please please advise me here how to use it properly?
Thanking you in advance
Karvesh
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04590 seconds