Book a Demo

Author Topic: Report Level numbering  (Read 6119 times)

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Report Level numbering
« on: March 19, 2013, 02:32:04 am »
Hi,

I have spent some[size=9] (rather miserable)[/size] time creating several report templates.

I'd like to include a level numbering as a prefix to the package names that form the subheadings (like you would do when you create a table of contents for a book).

Is that possible? I have seen this guide.
However, I can only create a flat numbering.
Inserting multi-level numberings seems to require duplicating both the styles and the template content to display elements and the diagram for packages at each hierarchy level.
Inserting template fragments fails totally because the placeholders are echoed as plain template code and not filled with values.

Why is this such a huge pain in the ***?
« Last Edit: March 19, 2013, 04:11:01 am by observer »

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Report Level numbering
« Reply #1 on: March 19, 2013, 06:44:17 pm »
Dear Patrick,

I can't get your issue right now. If you want it, I can send you some templates which you could try.

Best regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Report Level numbering
« Reply #2 on: March 19, 2013, 07:26:17 pm »
This was one of my main drivers when creating eaDocX: getting RTF to pick-up the Heading level numbering for my documents (and all the other Word styles which I had to use).
eaDocX makes this really easy: all headings get a Word heading style, sub-packages get higher numbers, so just generate the EA Package into a document )which has heading outline-numbering switched-on for your Word heading styles) and it all just works.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Report Level numbering
« Reply #3 on: March 19, 2013, 10:07:32 pm »
Thank you Stefan, I have sent you my address via PM.

Ian, thanks as well for your hint; I have tried eaDocX but it raised a lot of fatal exceptions which could not be resolved in the support because they could not be reproduced. So I have to admit that I kind of lost my trust in how nicely eaDocX and Word play together in our specific and maybe somewhat complex setups (no offense).

[edit]
After receiving the RTF template examples, here is my problem in more detail.

First of all, I created a custom list and some overrides. The manual instructs me to "select the List override radio button and type or select the list override item you have just created."
This is not possible. The dropdown menu is deactivated.

The output with a sample template is well-structured with sub-levels like "1.4.1.1":


Output with my template is flat:


It also uses Arial even though I had defined another font for body text.

The manual advises me to "Repeat steps 1 to 4 for the next level (Element)". But I do not want to number elements.
I want to number the sub packages without having to copy all the template contents inside the "child"  section for each level:
Code: [Select]
child packages > < child packages.[/edit]
« Last Edit: March 20, 2013, 01:34:19 am by observer »

Robert Sheridan

  • EA User
  • **
  • Posts: 105
  • Karma: +0/-0
    • View Profile
Re: Report Level numbering
« Reply #4 on: March 22, 2013, 08:09:27 pm »
Am I correct in thinking that you want the report generator to create hierarchical numbers for packages where they heading levels? There was a thread on this a while back.  It is a pain to do but once you have done it it does work.

If this is the case then the report templates do support it but to achieve it you have to do (in summary) the following:
1. start from scratch with a clean template
2. load your windows styles in to the template
3. follow the procedure in the manual *exactly* to set up lists and and overrides
4. save this template as a base template and use it to create all your subsequent templates.
5. create a new template from the base template you just created with  headings applied to the relevant sections
6. follow the procedure in the manual *exactly* to set up paragraph list numbering.

The key is the base template as the list overrides you create in it are the basis for everything else.  It is critical that you have the same list override in each template you use in a virtual document as otherwise the numbering will be out of sequence.

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Report Level numbering
« Reply #5 on: March 22, 2013, 08:53:45 pm »
Quote
Am I correct in thinking that you want the report generator to create hierarchical numbers for packages where they heading levels?

Exactly

Quote
The key is the base template as the list overrides you create in it are the basis for everything else.  It is critical that you have the same list override in each template you use in a virtual document as otherwise the numbering will be out of sequence.

Ok. That is good to know. I didn't find the other thread as I was running into server timeouts with the forum search.
I think I'll give the numbering another try later, I don't want to throw away the template now  ;)