Reportparameter (Date) and getYear() in computed column [message #360781] |
Fri, 22 February 2008 10:01  |
Eclipse User |
|
|
|
Hello,
I get an error using a report parameter (type Date) in a computed column
of a dataset. If I use following expression: params["xyz"].getYear();
I'll get the following error: "The data type of computed column "xyz" is
java.lang.Integer, but one of its value is "null", which cannot be
converted to java.lang.Integer". Anyone know how to solve this problem?
The report parameter has a default value.
Thanks for help!
|
|
|
|
|
Re: Reportparameter (Date) and getYear() in computed column [message #360831 is a reply to message #360815] |
Mon, 25 February 2008 09:43  |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Helmut,
Can you post your report?
The error you are getting usually happens when one of the data set
values is null and it is used in a calculation.
Jason
Helmut Neubauer wrote:
> Hello,
>
> there is no change, same error.
>
> - The report parameter has a default value.
> - I tried to use a format for the report parameter.
> - I tried to use Integer as Data Type for the column (i also tried the
> other types, although they shoudn't be the right ones).
>
> Helmut
>
>
> Jason Weathersby schrieb:
>> Helmut,
>>
>> try params["xyz"].value.getYear();
>>
>> Jason
>>
>> Helmut Neubauer wrote:
>>> Hello,
>>>
>>> I get an error using a report parameter (type Date) in a computed column
>>> of a dataset. If I use following expression: params["xyz"].getYear();
>>> I'll get the following error: "The data type of computed column "xyz" is
>>> java.lang.Integer, but one of its value is "null", which cannot be
>>> converted to java.lang.Integer". Anyone know how to solve this problem?
>>>
>>> The report parameter has a default value.
>>>
>>> Thanks for help!
|
|
|
Powered by
FUDForum. Page generated in 0.04010 seconds