Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Javascript exception in Scripted DataSource Report
matute
Hello,
Hope somebody could help me, thanks in advance.
Does anybody know why is launched a Javascript exception with the Type Error "is not a function, it is object"?
Is it related with my ClassLoader? I'm a little lost.
Help, please!!!
I attach the classes i'm using.
All help wil be welcome, thanks.
Find more posts tagged with
Comments
CBR
Hi,
as far as i can see you are trying to create a report using the design engine API in CrearPlantilla class (method build)
All other methods of this class contain logic that should be invoked in the report (your scripted data set is based on this class). Is there a reason why you mixed up the code to create the report with code to provide the data? If you are creating a report inside a class this doesn't mean that you can access other code of this class. The output of your build method is just a xml file that has nothing to do with the class file.
Can you provide the full stack trace?
matute
Thanks CBR,
The situation is the next:
My application must be able to give to the user the posibility of create his own report designs, but the Datasources and Datasets must be supplied by the application, creating these with Java Objects.
The user will only be able to modify the layout of the design, but he will never be able to select a Datasource or Dataset different of those which are supplied by the application, for the selected report.
I mean, I have to avoid that the user could select an XML, JDBC or another datasource.
And the report must be create at runtime, it can?t be done before.
Hope you can understand my explanation.
Thank you very much
CBR
Ok now i understand. What does BIRT.exe do?
I think the reason for that is that the BIRT runtime is not able to find your java classes. When working with Report Engine API you can set create a classloader that loads your java classes and hand this instance to the Report Engine.
matute
BIRT.exe opens the ReportDesigner.
I have noticed that if I use ECLIPSE.exe ( the whole IDE) instead BIRT.exe ( only the ReportDesigner
(DE API)), the command opens the .rptdesign perfectly. If I use the command BIRT.exe which is in Main.class it only opens the ReportDesigner, and after that I have to do : "File-->OpenFile-->... " and select the .rptdesign.
This is what I don't want. I just want to open the .rptdesign by the command BIRT.exe avoiding to use ECLIPSE.exe which opens all the ECLIPSE IDE ( this is to heavy for my computer).
Maybe is this because I don`t have the libraries to open the report?
I don`t understand why I can do Runtime.getRuntime().exec("C:\ECLIPSE.exe myreportdesign.rptdesign") and open the reportdesign and I can`t do Runtime.getRuntime().exec"C:BIRT.exe myreportdesign.rptdesign").
Thank you very much for your help. I am very gratefull.