Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Conditional expressions are missing
Conditional expressions are missing [message #225760] Fri, 16 March 2007 06:18 Go to next message
Ravi is currently offline RaviFriend
Messages: 92
Registered: July 2009
Member
Using 211.

Is it that conditional statements like 'if', 'else' are not supported to
build data expressions?

A use case is -- if DataSet.columnA = X then the report Data element value
should be DataSet.columnB otherwise the value should be DataSet.columnC.

How can I do this?

Thanks in Advance,
Ravi Chamarthy
Re: Conditional expressions are missing [message #228224 is a reply to message #225760] Mon, 19 March 2007 18:24 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Ravi wrote:
> Using 211.
>
> Is it that conditional statements like 'if', 'else' are not supported to
> build data expressions?
>
> A use case is -- if DataSet.columnA = X then the report Data element
> value should be DataSet.columnB otherwise the value should be
> DataSet.columnC.
>
> How can I do this?
>
> Thanks in Advance,
> Ravi Chamarthy
>
This should work fine.
As a test I entered the following as my expression and it worked fine.

if( dataSetRow["QUANTITYORDERED"] == 30 ){
dataSetRow["PRICEEACH"]
}else{
dataSetRow["QUANTITYORDERED"];
}

Jason
Previous Topic:Report Parameter DATE
Next Topic:Error by run
Goto Forum:
  


Current Time: Sat Apr 20 00:10:08 GMT 2024

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

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

Back to the top