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"){
else if(row["workcode:payrollID"] == "XMAS?","CODW","CDDP","CALL OUT"){
else if(row["workcode:payrollID"] == "OC"){
else if(row["workcode:payrollID"] == "REGF"){
else if(row["workcode:payrollID"] == "HP05"){
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: 33137
Registered: July 2009
Senior Member
It's best to ask on the BIRT forum:

Ed Merks
Professional Support:
Previous Topic:Eclipse neon won't open
Next Topic:A Simple Doubt
Goto Forum:

Current Time: Sat Apr 20 02:06:55 GMT 2024

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

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

Back to the top