Book a Demo

Author Topic: RunHTMLReport does not create propper output  (Read 2903 times)

olafnorge

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
RunHTMLReport does not create propper output
« on: June 06, 2008, 07:23:34 am »
Hi there,

I'm using the lastest Java API to generate HTML-Reports of my Models. Generating works fine, but if I open the generated index.html I always get a strange JavaScript-Error-Message.



Some more details:

I open my repository as follows:

Code: [Select]
Repository eaRep = new Repository();
eaRep.OpenFile(eaFile);

Then I create a project object:

Code: [Select]
Project eaProj = eaRep.GetProjectInterface();
And call the RunHTMLReport-function with the following parameters:

Code: [Select]
eaProj.RunHTMLReport("root node", "absolute path where to store report", "png", "default", "html");
I don not use a numeric guid I use the Name of the root node (Views) as I could see it in EA. I think my failure is the style (fourth param). But what do I have to write there? Or do you see any other failures? Please let me know.

Thanks for your help.

olafnorge

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RunHTMLReport does not create propper output
« Reply #1 on: June 06, 2008, 08:17:22 am »
The error isn't caused by generating using the Java API.  If it's generated, then the parameters are okay.  I don't know the exact details, but the javascript generated by EA can cause errors in some circumstances.

You should be able to get more details, and possibly a workaround if you contact sparx systems support directly.
« Last Edit: June 06, 2008, 08:18:13 am by simonm »

Steve Rose

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: RunHTMLReport does not create propper output
« Reply #2 on: June 01, 2011, 05:32:03 pm »
Did you figure this out Olaf?  I'd like to know too