Conditional Formatting of Dynamic Text [message #1823645] |
Mon, 30 March 2020 16:28 |
Justin Flynt Messages: 2 Registered: March 2020 |
Junior Member |
|
|
I'm new to BIRT and trying to rebuild some payroll reports that previously were run from Crystal Reports. I'm using conditional formatting of dynamic text field for my IF, Then statement... but when i run the report it returns the same value for all rows (regardless of the data value), its the first value in my IF statement. I receive "SPRM" for every row, when i try to use this statement. Can anyone show me where I went wrong?
if(row["workcode:payrollID"] == "ATH","DIG","Super","Event","COGSE","PEP"){
"SPRM";
}
else if(row["workcode:payrollID"] == "XMAS?","CODW","CDDP","CALL OUT"){
"SOT1";
}
else if(row["workcode:payrollID"] == "OC"){
"SOT2";
}
else if(row["workcode:payrollID"] == "REGF"){
"REGF";
}
else if(row["workcode:payrollID"] == "HP05"){
"SHP5";
}
else{
BirtStr.right(row["workcode:payrollID"], 4);
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03374 seconds