Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id1357750096
Content column
id1357750096
Content block
id1357750096

Groovy Script tool enables report templates to evaluate or run Groovy codes from templates and external Groovy files.

The Groovy tool includes two methods:

(i) 'eval' method 
     This method will evaluate Groovy text, and then return the result.
(ii) 'execute' method 
     This method will execute a Groovy file, and then return the result.

Like other Script tools, the Groovy Script tool 'scripttool.jar' must be installed in the 'extensions' folder of the Report Wizard plugin, and 'groovy-all-1.7.9.jar' must be included in any class path or the 'extensions' folder. For further information about Custom tools and the installation, see Custom tool.

To import Groovy Script tool to a template, type the following code:

Code Block
#import ('groovy', 'com.nomagic.reportwizard.tools.script.GroovytoolGroovyTool')
Content block
id1357750095

Related pages

Children Display