Book a Demo

Author Topic: Stylesheet in MDG is not used by Linked Document Templates (in MDG)  (Read 5080 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
I had a situation where I had some RTF docgen templates, some linked document templates (that eventually where supposed to end up in the document as well) and a stylesheet that was used for both.
All of these things were nicely packages in an MDG and distributed that way to the production environment.

When I tested this on my development machine it all worked perfectly fine. The numbering of the RTF template parts, and the numbering of the linked document nicely continued (because they use the same style defined in the same stylesheet)

Big was my surprise that this DID NOT work on production. The numbering of the linked document sections didn't continue in the RTF sections. (so I had two time section 1, two times section 2, etc...)
I even tried to update the styles on my linked document to set them to my (MDG) stylesheet, but the MDG stylesheet wasn't even listed as an option.

This was solved simply copying my MDG stylesheet as a regular stylesheet on the production model. Then suddenly it all worked fine and the numbering in the final documents was OK.
But of course now I have the stylesheet twice in my model, once in the MDG, and once as a copy in the regular resources.

So please make sure that Linked Documents can use stylesheets imported as part of an MDG.

I'll report it as an official bug as well.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Stylesheet in MDG is not used by Linked Document Templates (in MDG)
« Reply #1 on: September 28, 2016, 09:29:05 pm »
I can confirm. Stylesheets have to be present in the target project. Putting them in an MDG Technology has no effect.

Old bug.

/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Stylesheet in MDG is not used by Linked Document Templates (in MDG)
« Reply #2 on: September 29, 2016, 12:22:09 am »
Thanks for the confirmation Uffe.
Nice to know that I'm not seeing ghosts.
Now just waiting for Sparx to fix the bug.

Geert