Import packages in script [message #262297] |
Wed, 28 November 2007 21:08  |
Eclipse User |
|
|
|
Hi,
I'm wondering if I already did the "importPackage(Packages.....)" in the
"initialize" script tab,
do I still need to do the same import statement everywhere else that I need
to use those imported functions?
eg.
If I have this in the "intialize" script tab in the report
importPackage(Packages.mypackage)
obj = new mypackageCreate( ); //global variable
Do I still need to do the import statment in lets say a report element
expression?
obj.mypackageFunc( ); // calling the imported function in the report element
expression
Maria.
|
|
|
|
|
Re: Import packages in script [message #262471 is a reply to message #262303] |
Fri, 30 November 2007 09:29  |
Eclipse User |
|
|
|
Originally posted by: calvinwongkh_delete.this.thanks_.yahoo.com
Hi Shaik,
If I defined a globalized function in "initialize" that uses a class in
the package, do I need to declare the class into the the global variable
as well?
Thanks,
Calvin
Shaik wrote:
> Hi Maria,
>
> in "initialize" method just import the package and in "beforeFactory"
> script declare global variable as u want, like following.
>
> in initialize script
> ---------------------
> importPackage(Packages.mypackage)
>
> in beforeFactory script
> ----------------------
> obj = new mypackageCreate( );
>
> now , 'obj' u can use anywhere in report
>
> Regards,
> Shaik
>
|
|
|
Powered by
FUDForum. Page generated in 0.66867 seconds