Skip to main content



      Home
Home » Archived » BIRT » Reportparameter (Date) and getYear() in computed column
Reportparameter (Date) and getYear() in computed column [message #360781] Fri, 22 February 2008 10:01 Go to next message
Eclipse UserFriend
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 #360788 is a reply to message #360781] Fri, 22 February 2008 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

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!
Re: Reportparameter (Date) and getYear() in computed column [message #360815 is a reply to message #360788] Mon, 25 February 2008 03:16 Go to previous messageGo to next message
Eclipse UserFriend
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!
Re: Reportparameter (Date) and getYear() in computed column [message #360831 is a reply to message #360815] Mon, 25 February 2008 09:43 Go to previous message
Eclipse UserFriend
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!
Previous Topic:Storing report parameters configuration with the web viewer
Next Topic:Urgent: No images/charts with RunAndRenderTask within a SwingWorker
Goto Forum:
  


Current Time: Tue Oct 14 20:20:48 EDT 2025

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

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

Back to the top