Report Wizard uses the import directive for importing a Custom Tool to a template.

An example of a directive:

#import('prefix', 'name')

The import directive declares that the template uses the custom tool, names the tool that defines it, and specifies its tag prefix before the custom tool is used in a template page. You can use more than one import directive in a template, but the prefix defined in each template page must be unique.

Attributes

name (type:String)
            The uniform or full qualified class name that locates the Tool class, for example, mytool.HelloTool

prefix (type:String)
            The prefix that precedes the custom tool name such as a string in $hello.getHello(). Empty prefixes are not allowed. When developing or using custom tools, do              not use tag prefixes such as bookmark, sorter, template, file, array, group, map, iterator, list, date, report, exporter, profiling, and project, as they are reserved                by Report Wizard.

The code fragment indicated below declares a custom tool.

#import('hello', 'mytool.HelloTool')
Get Hello
$hello.getHello()
Get Hello Foo
$hello.getHello('foo')

The output from the above template is:

Get Hello
Hello World
Get Hello Foo
Hello foo