Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:58 Go to next message
Justin Flynt is currently offline Justin FlyntFriend
Messages: 2
Registered: March 2020
Junior Member
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 05:16 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
It's best to ask on the BIRT forum:

https://www.eclipse.org/forums/index.php/f/2/


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse neon won't open
Next Topic:A Simple Doubt
Goto Forum:
  


Current Time: Tue Mar 19 08:39:43 GMT 2024

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

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

Back to the top