params["DateParam"].getYear() doesn't work in 2.1.1 [message #197582] |
Wed, 25 October 2006 05:02  |
Eclipse User |
|
|
|
Hello,
Something is changes in dates handling in JavaScript in BIRT v.2.1.1
following code works Ok in v.2.1.0:
params["DateParam"].getYear()
in v.2.1.1 (and v.2.2M1 too) it returns an error.
Could anybody suggest - what to do?
Pavel
|
|
|
|
|
Re: params["DateParam"].getYear() doesn't work in 2.1.1 [message #198371 is a reply to message #197863] |
Mon, 30 October 2006 14:56   |
Eclipse User |
|
|
|
Originally posted by: lingtai.earthlink.net
Jason:
I have encountered the same problem in my reports, i.e. the following
script worked in Birt 2.1.0 but failed in Birt 2.1.1.
params["rpCsLabels"].replace("-", " ", "gi");
after I changed it to the following as suggested
params["rpCsLabels"].value.replace("-", " ", "gi");
then I was able to create my report successfully.
However, I am not able to preview my dataset result any more after the
change. I will get following exception:
A BIRT exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:2.1.1.v20060922-1058
Error Code:data.engine.BirtException
Error Message:A BIRT exception occurred: Error evaluating Javascript
expression. Script engine error: TypeError: Cannot call method "replace"
of undefined (DataSet[getTotalConfigUnchanged].__bm_beforeOpen#9)
Script source: DataSet[getTotalConfigUnchanged].__bm_beforeOpen, line:
1, text:
__bm_beforeOpen(). See next exception for more information.
Error evaluating Javascript expression. Script engine error: TypeError:
Cannot call method "replace" of undefined
(DataSet[getTotalConfigUnchanged].__bm_beforeOpen#9)
Script source: DataSet[getTotalConfigUnchanged].__bm_beforeOpen, line:
1, text:
__bm_beforeOpen()
Is this a bug? Is it right that the same script code work differently
in dataset preview and in reporting preview?
Best regards,
Ling
Jason Weathersby wrote:
> Pavel,
>
> Try params["DateParam"].value.getYear()
>
> Jason
>
> "Pavel Severov" <severov@gmail.com> wrote in message
> news:cf76bc10a47e569ee2dc67a938b32305$1@www.eclipse.org...
>> Hello,
>>
>> Something is changes in dates handling in JavaScript in BIRT v.2.1.1
>>
>> following code works Ok in v.2.1.0:
>>
>> params["DateParam"].getYear()
>>
>> in v.2.1.1 (and v.2.2M1 too) it returns an error.
>>
>> Could anybody suggest - what to do?
>>
>> Pavel
>>
>
>
|
|
|
Re: params["DateParam"].getYear() doesn't work in 2.1.1 [message #198443 is a reply to message #198371] |
Tue, 31 October 2006 14:47   |
Eclipse User |
|
|
|
Ling,
Can you log a bug for this?
I assume the report runs correctly?
Jason
"Ling Tai" <lingtai@earthlink.net> wrote in message
news:454658E7.3000307@earthlink.net...
> Jason:
>
> I have encountered the same problem in my reports, i.e. the following
> script worked in Birt 2.1.0 but failed in Birt 2.1.1.
>
> params["rpCsLabels"].replace("-", " ", "gi");
>
> after I changed it to the following as suggested
>
> params["rpCsLabels"].value.replace("-", " ", "gi");
>
> then I was able to create my report successfully.
> However, I am not able to preview my dataset result any more after the
> change. I will get following exception:
>
> A BIRT exception occurred.
> Plug-in Provider:Eclipse.org
> Plug-in Name:BIRT Data Engine
> Plug-in ID:org.eclipse.birt.data
> Version:2.1.1.v20060922-1058
> Error Code:data.engine.BirtException
> Error Message:A BIRT exception occurred: Error evaluating Javascript
> expression. Script engine error: TypeError: Cannot call method "replace"
> of undefined (DataSet[getTotalConfigUnchanged].__bm_beforeOpen#9)
> Script source: DataSet[getTotalConfigUnchanged].__bm_beforeOpen, line: 1,
> text:
> __bm_beforeOpen(). See next exception for more information.
> Error evaluating Javascript expression. Script engine error: TypeError:
> Cannot call method "replace" of undefined
> (DataSet[getTotalConfigUnchanged].__bm_beforeOpen#9)
> Script source: DataSet[getTotalConfigUnchanged].__bm_beforeOpen, line: 1,
> text:
> __bm_beforeOpen()
>
> Is this a bug? Is it right that the same script code work differently in
> dataset preview and in reporting preview?
>
> Best regards,
> Ling
>
> Jason Weathersby wrote:
>> Pavel,
>>
>> Try params["DateParam"].value.getYear()
>>
>> Jason
>>
>> "Pavel Severov" <severov@gmail.com> wrote in message
>> news:cf76bc10a47e569ee2dc67a938b32305$1@www.eclipse.org...
>>> Hello,
>>>
>>> Something is changes in dates handling in JavaScript in BIRT v.2.1.1
>>>
>>> following code works Ok in v.2.1.0:
>>>
>>> params["DateParam"].getYear()
>>>
>>> in v.2.1.1 (and v.2.2M1 too) it returns an error.
>>>
>>> Could anybody suggest - what to do?
>>>
>>> Pavel
>>>
>>
|
|
|
Re: params["DateParam"].getYear() doesn't work in 2.1.1 [message #198541 is a reply to message #198443] |
Tue, 31 October 2006 16:03  |
Eclipse User |
|
|
|
Originally posted by: lingtai.earthlink.net
Jason:
Yes, the report runs correctly except when I try to preview the result
of the dataset, I will get the exception.
I will log the bug. Thank you so much for your help.
Best regards,
Ling
Jason Weathersby wrote:
> Ling,
>
> Can you log a bug for this?
> I assume the report runs correctly?
>
> Jason
>
> "Ling Tai" <lingtai@earthlink.net> wrote in message
> news:454658E7.3000307@earthlink.net...
>> Jason:
>>
>> I have encountered the same problem in my reports, i.e. the following
>> script worked in Birt 2.1.0 but failed in Birt 2.1.1.
>>
>> params["rpCsLabels"].replace("-", " ", "gi");
>>
>> after I changed it to the following as suggested
>>
>> params["rpCsLabels"].value.replace("-", " ", "gi");
>>
>> then I was able to create my report successfully.
>> However, I am not able to preview my dataset result any more after the
>> change. I will get following exception:
>>
>> A BIRT exception occurred.
>> Plug-in Provider:Eclipse.org
>> Plug-in Name:BIRT Data Engine
>> Plug-in ID:org.eclipse.birt.data
>> Version:2.1.1.v20060922-1058
>> Error Code:data.engine.BirtException
>> Error Message:A BIRT exception occurred: Error evaluating Javascript
>> expression. Script engine error: TypeError: Cannot call method "replace"
>> of undefined (DataSet[getTotalConfigUnchanged].__bm_beforeOpen#9)
>> Script source: DataSet[getTotalConfigUnchanged].__bm_beforeOpen, line: 1,
>> text:
>> __bm_beforeOpen(). See next exception for more information.
>> Error evaluating Javascript expression. Script engine error: TypeError:
>> Cannot call method "replace" of undefined
>> (DataSet[getTotalConfigUnchanged].__bm_beforeOpen#9)
>> Script source: DataSet[getTotalConfigUnchanged].__bm_beforeOpen, line: 1,
>> text:
>> __bm_beforeOpen()
>>
>> Is this a bug? Is it right that the same script code work differently in
>> dataset preview and in reporting preview?
>>
>> Best regards,
>> Ling
>>
>> Jason Weathersby wrote:
>>> Pavel,
>>>
>>> Try params["DateParam"].value.getYear()
>>>
>>> Jason
>>>
>>> "Pavel Severov" <severov@gmail.com> wrote in message
>>> news:cf76bc10a47e569ee2dc67a938b32305$1@www.eclipse.org...
>>>> Hello,
>>>>
>>>> Something is changes in dates handling in JavaScript in BIRT v.2.1.1
>>>>
>>>> following code works Ok in v.2.1.0:
>>>>
>>>> params["DateParam"].getYear()
>>>>
>>>> in v.2.1.1 (and v.2.2M1 too) it returns an error.
>>>>
>>>> Could anybody suggest - what to do?
>>>>
>>>> Pavel
>>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04047 seconds