Book a Demo

Author Topic: HTML Model document  (Read 3916 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
HTML Model document
« on: January 08, 2014, 01:52:27 am »
Hi,

When i generate an HTML Model Document it appears that the top level "Package" in the generated project browser (ie toc iframe to the left of the browser) always has the name of "Project". I can see that this is defined in js/data/root.xml, but i want to set this within Sparx so that the name is something specific (ie "My Process Model"). Is there a value i can set against my <<master document>> package or the contained <<model document>>> class in order to set a default value for the root of the toc ?

Regards,

Jon.

Imraanp

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: HTML Model document
« Reply #1 on: January 13, 2014, 09:11:41 pm »
Hi,
You can try changing the text in the "Title" field of the dialog box just before you generate. [select your package and press "shift" + "F8" keys]

hope this helps


OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: HTML Model document
« Reply #2 on: January 13, 2014, 09:36:10 pm »
Hi,

Thanks for the suggestion. Unfortunatly when using a Model Document to generate your html, sparx ignores the text in the title field or that passed into the API when using the automation interface (as i am) and instead just inserts a 'title' of Project. Its this behaviour that i want to override.

Regards,

Jon.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: HTML Model document
« Reply #3 on: January 14, 2014, 09:05:07 am »
I just tested, the document title and heading at the top of the page are set according the title entered. The top item in the tree is the name of the package that I generated.

Edit: I get "Project" when doing a master document. If anything I would have expected the name of the master document. If you edit js\data\root.xml you can change the name after generation.
« Last Edit: January 14, 2014, 09:11:11 am by simonm »