BIRT Exchange Forum: Simple Javascript file not accessed on iServer - BIRT Exchange Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Simple Javascript file not accessed on iServer Rate Topic: -----

#1 User is offline   millvall 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 26-August 08

Posted 11 January 2010 - 10:24 AM

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 File(s)


0

#2 User is offline   averma 

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 295
  • Joined: 08-August 07

Posted 15 January 2010 - 02:22 PM

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 File(s)


1

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users