Go Back   Forum - BIRT Exchange > Deploying Reports Forums > Deploying BIRT Reports in Deployment Kit or iServer Express

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-11-2010, 10:24 AM
Junior Member
 
Join Date: Aug 2008
Posts: 26
Default Simple Javascript file not accessed on iServer

I don't if this a bug or I am not placing my .js file in the correct directory on the server.

SYNOPSIS:
Using an HTML Button which calls a function in an external .js file.
** Works great in BRDPro 10sp1 ** Fails when deployed to iServer.
simple.js is accessed from client side, not during report gen/rendering.

simple.js deployed as follows:
On BRDPro box:
C:\Program Files\Actuate10\BRDPro\eclipse\plugins\com.actuate.birt.report.viewer_2.3.2.v20081204\iportal
On iServer
C:\Program Files\Actuate10\iServer\servletcontainer\iportal\js
(Same place I have deployed other js files with successful access from BIRT reports.)

Am I deploying simple.js to the correct folder in iServer? Or is it different when using JSAPI?
Ultra simple report design and JS attached.

Thanks
Milt.

Note:
* See HTML Button, onClick method.
* Text element ensure simple.js is loaded/
Attached Files
File Type: zip simplejsprob.zip (1.5 KB, 3 views)
Reply With Quote
  #2 (permalink)  
Old 01-15-2010, 02:22 PM
Senior Member
 
Join Date: Aug 2007
Posts: 219
Default

Hi Milt,
You should add the .js file to your BIRT design as a resource. (Property Editor -> Resources -> Javascript files). You should not require to place your .js file to:
C:\Program Files\Actuate10\BRDPro\eclipse\plugins\com.actuate.birt.report.viewer_2.3.2.v20081204\iportal

When you deploy your BIRT report to iServer then upload your .js file to resources folder of your encylopedia volume (generally /Resources) and make sure you give the right previleges to it.

I am attaching a sample BIRT report that uses a scripted datasource to create a dataset. Scripts are defined in a separate .js file that is added as a resource to the design. Hope this helps.

Ashwini
Attached Files
File Type: zip ExternalScript.zip (1.7 KB, 3 views)

Last edited by averma : 01-15-2010 at 02:25 PM.
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 11:32 AM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0