|
Re: Conditional expressions are missing [message #228224 is a reply to message #225760] |
Mon, 19 March 2007 18:24 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02789 seconds