[Working with scripts]: Import Class

Standard Java classes can be accessed by JavaScript using !ImportClass() that is available in Elixir Report

=Code Snippet=
importClass(java.util.Vector);

Accessing the method of the class can be done through its name.

=Code Snippet=
v = new Vector();
importPackage(java.lang);
System.out.print("Hello ");

Sample on using ImportClass() is available at the following link:-

ImportClass.zip (2.6 KB)

To use the sample :

  1. Download ImportClass.zip from the above link
  2. Unzip ImportClass.zip to a folder
  3. Copy Test.jar and place at $ELIXIR_REPORT_PROFESSIONAL_HOME\ext
  4. Run Elixir Report Professional
  5. Click on Add !FileSystem and select Jar !FileSystem
  6. Enter KnowledgeBase for Name and locate ImportClass.jar at the folder that ImportClass.zip is unzipped to