r1 - 18 Jan 2006 - 08:49:46 - TanDunlinYou are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > ImportClass

ImportClass

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 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:-
Using ImportClass

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 unzip to

-- TanDunlin - 18 Jan 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