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 :
- Download ImportClass.zip from the above link
- Unzip ImportClass.zip to a folder
- Copy Test.jar and place at $ELIXIR_REPORT_PROFESSIONAL_HOME\ext
- Run Elixir Report Professional
- Click on Add !FileSystem and select Jar !FileSystem
- Enter KnowledgeBase for Name and locate ImportClass.jar at the folder that ImportClass.zip is unzipped to