IF logic in Dynamic Text [message #1823640] |
Mon, 30 March 2020 10:58  |
Eclipse User |
|
|
|
I'm new to BIRT and trying to convert some older Crystal Rpts. I'm having trouble with the IF logic statements returning a valid value. The report returns the first conditional response no matter what the value of the data is. Below is the statement in the Dynamic Text i'm trying to use. On the report is shows "SPRM" for the value on every record. Can anyone help me figure out 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.07757 seconds