r1 - 21 Mar 2006 - 16:23:03 - JonPriddeyYou are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > SharingScripts

Sharing Scripts

Each report has a Function Definitions editor (on the Functions tab) in the Report Designer. Any code here will be run before the report is rendered.

In order to share code across reports, create a JavaScript file in the repository (Add>JavaScript is on the repository folder popup menu) and put the common code here.

Then go to the Function Definitions for each report and add a line:

importScript("/ElixirSamples/path/to/my.js");

with the appropriate path to your .js file.

-- JonPriddey - 21 Mar 2006

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback