Book a Demo

Author Topic: Glossary document template using fragments  (Read 4780 times)

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Glossary document template using fragments
« on: December 21, 2019, 03:56:12 am »
I am trying to create a Glossary documentation template with a section per type. It does not seem to be possible doing this through the Model\Glossary section on the template designer as I cannot find a way of grouping types or filtering just one glossary term type.

I looked inside my Sparx box of tools/tricks and concluded that I may be able to do it using Fragments. Fragments allow me to separate glossary term types into sections but I have hit a very annoying problem: the meaning column is rendered with all the formatting markup visible, the text formatting is not applied. Needless to say that if I use the Model\Glossary section on the template designer, everything renders fine.

Have i missed something?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Glossary document template using fragments
« Reply #1 on: December 21, 2019, 04:21:30 am »
Are you using SQL fragments?

In that case you have to do something like (in SQL Server)

select note as [Description-Formatted] from t_object

and in the template you use

{Description.Formatted}

This will tell EA that the field contains formatting so it gets rendered correctly.
For script fragments that works a little bit differently.

Geert

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Glossary document template using fragments
« Reply #2 on: December 23, 2019, 11:39:12 pm »
Thank you Geert, I am using SQL fragments and this solves the problems, much appreciated.

Is this documented anywhere? Or, is it knowledge embodied in the Sparx community, in this case you?

Season greetings!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Glossary document template using fragments
« Reply #3 on: December 26, 2019, 08:20:44 pm »
Thank you Geert, I am using SQL fragments and this solves the problems, much appreciated.

Is this documented anywhere? Or, is it knowledge embodied in the Sparx community, in this case you?

Season greetings!
Yes, you should find that information in the help page about SQL Fragments.

Geert