Skip to main content



      Home
Home » Newcomers » Newcomers » IF logic in Dynamic Text(unable to get report to process the IF statement)
IF logic in Dynamic Text [message #1823640] Mon, 30 March 2020 10:58 Go to next message
Eclipse UserFriend
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);
}
Re: IF logic in Dynamic Text [message #1823676 is a reply to message #1823640] Tue, 31 March 2020 01:16 Go to previous message
Eclipse UserFriend
It's best to ask on the BIRT forum:

https://www.eclipse.org/forums/index.php/f/2/
Previous Topic:Eclipse neon won't open
Next Topic:A Simple Doubt
Goto Forum:
  


Current Time: Wed Jul 23 14:22:07 EDT 2025

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

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

Back to the top