Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Risikat

Pages: [1]
1
Automation Interface, Add-Ins and Tools / rtf generation
« on: August 03, 2012, 02:58:41 am »
I have a template to generate rtf report. In the generated report this model document > keeps showing up. At the begining of the linked documents.

2
I want to generate .csv reports in EA using the command line. How would I go about doing that?

3
Automation Interface, Add-Ins and Tools / Write scripts to run in EA
« on: July 11, 2012, 09:25:45 pm »
Hi,

I can connect to EA through Java

// Import Clases
import org.sparx.Repository;


class ea0 {

   public static void main(String[] args) {      
      // Output some Java Information
      JavaInfo();
        
      //
      OpenRepository();        
    }

    
 /**
  * JavaInfo
 */  
   public static void JavaInfo () {
      PrintHeader("JAVA Runtime information");
      String sTmp0 = System.getProperty("java.class.path");
      
      System.out.println("Java ClassPath = " + sTmp0);
   }
  
  
 /**
  * OpenRepository
 */
   public static void OpenRepository() {
      PrintHeader("Connecting to EA");
      org.sparx.Repository r = new org.sparx.Repository();
    
       r.OpenFile("S:\\risikat.seriki\iVX8000 backup.eap");
    
      System.out.println("Done.");
   }

   public static void PrintHeader (String sMsg) {
      System.out.println("\n#===============================================================================");
      System.out.println("# " + sMsg);
      System.out.println("#===============================================================================");
   }

   public static void PrintSubHeader (String sMsg) {
      System.out.println("\n#-------------------------------------------------------------------------------");
      System.out.println("# " + sMsg);
      System.out.println("#-------------------------------------------------------------------------------");
   }
  
}
This code works.

For the open line function what if you wanted to open from a database instead what would you replace “r.OpenFile("S:\\risikat.seriki\iVX8000 backup.eap");” in the code with.
And how would you go about interrogating EA to extract information from the database, like commands you could write in VB or Java.

4
Quote
You can write a simple script that uses the API to perform s single task.

q.

Which is the better script to write VBScript or JavaScript. How do you go about running it in the command window

5
How do you access EA using the command promp. Most importantly generate html or csv reports from the command prompt instead of having to go into EA to do it.

Pages: [1]