Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Problem with BIRT script
Problem with BIRT script [message #57481] Wed, 13 July 2005 09:43 Go to next message
Said is currently offline SaidFriend
Messages: 30
Registered: July 2009
Member
Hi;

A BIRT report developer uses the Mozilla Rhino JavaScript engine which
provides excellent integration with Java. This means all functionalities
of Mozilla Rhino JavaScript must work in BIRT. But when I try use the
functionality importPackage (e.g. importPackage(java.io)) in BIRT(1.0.1M1)
script I get the error “importPackge is undifined”.

Does somebody know why I get this error?

Thanks in advance,

Piet
Re: Problem with BIRT script [message #58695 is a reply to message #57481] Fri, 15 July 2005 06:23 Go to previous messageGo to next message
Wang Qiangsheng is currently offline Wang QiangshengFriend
Messages: 76
Registered: July 2009
Member
Try to use

importPackage(Packages.java.util);

instead of

importPackage(java.util);

for now.

Stanley Wang
BIRT Engine

S.Taaouati wrote:
> I?m trying to use ?importPackage? in birt version 1.0.1M1 but I get the
> following error:
>
> Error0 : data.engine.JSScriptInvalid(1 time)
> detail: Invalid Javascript expression. Source: DataSet:setScript.open,
> line: 0, Expression:
> function_prefix_1121238524940();function
> function_prefix_1121238524940(){importPackage(java.io)}
> Script engine error: ReferenceError: "importPackage" is not defined.
>
>
>
"Piet" <said.taaouati@remain.nl>
??????:be51f50d7154f6b5bc254e771eabced4$1@www.eclipse.org...
> Hi;
>
> A BIRT report developer uses the Mozilla Rhino JavaScript engine which
> provides excellent integration with Java. This means all functionalities
> of Mozilla Rhino JavaScript must work in BIRT. But when I try use the
> functionality importPackage (e.g. importPackage(java.io)) in BIRT(1.0.1M1)
> script I get the error
Re: Problem with BIRT script [message #59991 is a reply to message #58695] Tue, 19 July 2005 23:02 Go to previous message
Eclipse UserFriend
Originally posted by: myname(with.between names).lombardisoftware.com

Are you sure BIRT adds the ImporterTopLevel class that defines importClass()
and importPackage() to its runtime?

it sounds from the error that the function is missing not that the parameter
is wrong.


Wang QS wrote:

> Try to use
>
> importPackage(Packages.java.util);
>
> instead of
>
> importPackage(java.util);
>
> for now.
>
> Stanley Wang
> BIRT Engine
>
> S.Taaouati wrote:
>> I?m trying to use ?importPackage? in birt version 1.0.1M1 but I get
>> the following error:
>>
>> Error0 : data.engine.JSScriptInvalid(1 time)
>> detail: Invalid Javascript expression. Source: DataSet:setScript.open,
>> line: 0, Expression:
>> function_prefix_1121238524940();function
>> function_prefix_1121238524940(){importPackage(java.io)}
>> Script engine error: ReferenceError: "importPackage" is not defined.
>>
>>
>>
> "Piet" <said.taaouati@remain.nl>
> ??????:be51f50d7154f6b5bc254e771eabced4$1@www.eclipse.org...
>> Hi;
>>
>> A BIRT report developer uses the Mozilla Rhino JavaScript engine which
>> provides excellent integration with Java. This means all functionalities
>> of Mozilla Rhino JavaScript must work in BIRT. But when I try use the
>> functionality importPackage (e.g. importPackage(java.io)) in
>> BIRT(1.0.1M1) script I get the error
Previous Topic:html preview ?
Next Topic:Problem with Data Set (Oracle DB)
Goto Forum:
  


Current Time: Thu Dec 26 21:00:19 GMT 2024

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

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

Back to the top