Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Conditional expressions are missing
Conditional expressions are missing [message #225760] Fri, 16 March 2007 02:18 Go to next message
Ravi is currently offline Ravi
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 14:24 Go to previous message
Eclipse User
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: Fri Apr 18 06:40:13 EDT 2014

Powered by FUDForum. Page generated in 0.02575 seconds