Hi,
I'm using Birt 2.6.2 with Javascript.
In my RCP client I've added a script file ("C:\BIRT\MYRESOURCES\myscript.js") to "Shared Resources".
Using the RCP internal preview or the Birt Viewer, I've access to a function in that script file.
But when using that report without the RCP in a solaris environment with a BIRT HOME like /usr/local/birt-runtime-2_6_2/ReportEngine/.
I get errors like:
ReferenceError: "myFunction" is not defined. (/report/method[@name="initialize"]#9)
org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "
I copied that script file to that BIRT HOME directory, assuming that this is the default resource directory.
But it doesn't work.
I also tried to set a resource path in the initialize script of my report and copied the file there:
But it doesn't work also.
How to use script files outside the Birt RCP?
Do I have to add anything (a path or the file) somehow or just to copy the file to the right place?
regards
germobirt
I'm using Birt 2.6.2 with Javascript.
In my RCP client I've added a script file ("C:\BIRT\MYRESOURCES\myscript.js") to "Shared Resources".
Using the RCP internal preview or the Birt Viewer, I've access to a function in that script file.
But when using that report without the RCP in a solaris environment with a BIRT HOME like /usr/local/birt-runtime-2_6_2/ReportEngine/.
I get errors like:
ReferenceError: "myFunction" is not defined. (/report/method[@name="initialize"]#9)
org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "
I copied that script file to that BIRT HOME directory, assuming that this is the default resource directory.
But it doesn't work.
I also tried to set a resource path in the initialize script of my report and copied the file there:
reportContext.getAppContext().put("BIRT_RESOURCE_FOLDER","/usr/local/birt-runtime-2_6_2/ReportEngine/resources");
But it doesn't work also.
How to use script files outside the Birt RCP?
Do I have to add anything (a path or the file) somehow or just to copy the file to the right place?
regards
germobirt