Reg. Scripted Data Source ClassPath

View: New views
5 Messages — Rating Filter:   Alert me  

Reg. Scripted Data Source ClassPath

by shivamag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,
In which directory should I put my classes for scripted data source. I have
tried
classes directory as given in the tutorials but no luck. I am using 2.3.2.

Error that I keep getting are :
There are errors evaluating script "__bm_open()" TypeError[JavaPackage
Test.SimpleClass] is not a
function , it is ...  NativeJavaPackage.

Thanks ,
Shivam

_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev

Re: Reg. Scripted Data Source ClassPath

by flo_rian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Have you created a folder 'Test' under 'classes' folder, before putting down your SimpleClass ?
(in web-inf directory of eclipse' viewer plugin )

Cordially,
Florian

2009/6/10 Shivam <shivam.agarwal2010@...>

Hi,
In which directory should I put my classes for scripted data source. I have
tried
classes directory as given in the tutorials but no luck. I am using 2.3.2.

Error that I keep getting are :
There are errors evaluating script "__bm_open()" TypeError[JavaPackage
Test.SimpleClass] is not a
function , it is ...  NativeJavaPackage.

Thanks ,
Shivam

_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev



_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev

Parent Message unknown Re: Reg. Scripted Data Source ClassPath

by shivamag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Florian ,
Yes I have done that. I even tried using without a package , I mean directly using the SimpleClass , but no luck.
Any more ideas ?

Thanks.
Shivam



_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev

Re: Re: Reg. Scripted Data Source ClassPath

by flo_rian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok I think I see the problem.
Have you modified your script like this :

favoritesClass = new Packages.Test.SimpleClass();
favorites = favoritesClass.readData();
totalrows = favorites.size();
currentrow = 0;

Instead of :
favoritesClass = new Packages.SimpleClass();
favorites = favoritesClass.readData();
totalrows = favorites.size();
currentrow = 0;


2009/6/10 Shivam <shivam.agarwal2010@...>
Hi Florian ,
Yes I have done that. I even tried using without a package , I mean directly using the SimpleClass , but no luck.
Any more ideas ?

Thanks.
Shivam



_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev



_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev

Re: Reg. Scripted Data Source ClassPath

by shivamag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Florian ,
Yes already checked that.However , I have got a little of success the other way. 
    I included the java project in the same directory as of the report project and it started working.
   
 Thanks.
    Shivam


_______________________________________________
birt-report-designer-dev mailing list
birt-report-designer-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev