Dynamically Loading Java Sripts

jsakhamuri
edited February 11, 2022 in Analytics #1
RMurphy had posted an excellent article on DevShare outlining how to dynamically load java scripts in BIRT. This is great report and runs great in the Eclipse-BIRT developemnt environment. My test environment is Tomcat7.0 with BIRT Viewer. When I excute the report, the button shows up, but when I press the button myFunction does not get executed and I do not get an alert. I looked at the webconsole and found out that myFunction is not accessible. I have changed the report variable
Script_mySampleScript to "http://localhost:9090/birt-viewer/report/SimpleExample.js" to match my setup.
I have include the report with the changes that I made, and also a screen shot showing the directory structure and location of the files.

Comments