Book a Demo

Author Topic: Report Heading Levelling  (Read 3129 times)

gash272

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Report Heading Levelling
« on: July 25, 2024, 05:41:22 pm »
Hi

I am having an issue getting the headers to structure correctly (heading levelling) in a virtual report using several report templates. I have put the desired output structure right at the bottom but essentially I am struggling with 2 main points:
- Each new section of the report needs to start at a heading 1 (they are currently starting at heading 2, even when set to h1)
- The child packages within a section should be one level down from the parent package, but currently they are all coming out on the same level (h2).

First Section Report Template:
Introduction (h1)
package >
   {Pkg.Name} (h2)
   diagram >
      {Diagram.DiagramImg}
      element >
      {Template - Legend Element Descriptions} (see fragment layout below)
      < element
   < diagram
   element >
      {Element.Name} (h3)
      {Element.Notes}
      child elements >
      < child elements
   < element
   child packages >
   < child packages
< package

Template - Legend Element Descriptions
package >
   element >
       {Element.Name} (h2)
      {Element.Notes}
   < element
< package

Second Section Report Template:
package >
   diagram >
      {Diagram.Name} Product Model (h1)
      {Diagram.Notes}
      {Diagram.DiagramImg}
   < diagram
< package

Package Structure:
Product Architecture (package)
   Product Structure (package)
      Product Elements (elements)
   Rule Types (package)
      Rule Elements (elements)

Report Output:
Introduction (h1)
   Product Architecture (h2)
      Status (h3)
   Product Structure (h2)
      Product (h3)
   Rule Types (h2)
      Product : Product Rule (h3)
   
(Second section in the virtual document)
   Product Model Diagram (h2)

Desired Report Output:
Introduction (h1)
   Product Architecture (h2)
      Status (h3)
      Product Structure (h3)
         Product (h4)
      Rule Types (h3)
         Product : Product Rule (h4)
Product Model Diagram (h1)

I have tried these but all are unsuccessful:
  • Adjusting the Element Name heading levelling (changed to h1 or h4) but it makes no difference during report generation
  • updating the {PKG.NAME} to h1
  • Adding in another {PKG.NAME} in the child packages tags but setting it to h3
  • Updating the "Adjust Heading Levels" in the Document options for the second section template to "Heading 1" and to "None"

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Report Heading Levelling
« Reply #1 on: July 25, 2024, 05:44:26 pm »
I must admit that I haven't found the true logic behind these heading levels.

I usually get where I need to be with trial and error.

Geert