Author Topic: generate glossary based on "glossary types"  (Read 2896 times)

Werner Schoenmaekers

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
generate glossary based on "glossary types"
« on: October 24, 2012, 01:39:57 am »
We have several EA projects on the server. The server has only 1 (global) glossary. To distinguish the glossary items, we use the "type" field.
There is type "PROJ1" for all the glossary items of project PROJ1
There is type "PROJ2" for all the glossary items of project PROJ2

If I run the glossary template, I get the items of PROJ1 & PROJ2.
 
But I want only the items of PROJ1.
It seems not be possible with filters on the document.
Please assist...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13282
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: generate glossary based on "glossary types
« Reply #1 on: October 25, 2012, 04:34:06 pm »
Werner,


It should be pretty easy to write an SQL search that returns only the glossary items of a certain type.

I understand that it should be possible to base the selection of elements in your document on that search, thus limiting the glossary elements you get in the document.

Geert

PS. I can help you with the SQL search, but I've never used the RFT generator (and I want to keep it that way ;D) so I wouldn't know how to use the search in your document.
« Last Edit: October 25, 2012, 04:34:34 pm by Geert.Bellekens »

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: generate glossary based on "glossary types"
« Reply #2 on: October 26, 2012, 04:28:18 pm »
You can do this using Virtual Documents.
Create a SQL Search for the Glossary.
Create a seperate Model Document for your Glossary - set the Tagged Value SearchName to reference the Model Search.
Include the rest of the report in another Model Document.
In the Version 10 Beta - you can do this is one Document.

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: generate glossary based on "glossary types"
« Reply #3 on: October 27, 2012, 01:33:45 am »
Not that you need to use this right now but just to let you know you still have an option if virtual documents can't provide what you need:

If you don't mind some scripting and now your way around in the SQL repository of EA you can also use the Repository document generation interface.

I recently tried this as an alternative to a problem i couldn't solve with virtual documents and it turns out to be real easy to use  8-):

- you can still use RTF templates created with the RTF template editor
- much better control on what model elements to insert in the document, in what order
- much finer control on the internal structuring of the document
- (my personal favorite) with some small modifications scripts can run in WSH or another scripting engine so it doesn't require additional knowledge of EA to maintain them (apart from the RTF templates in the EA repository)

But as mentioned, this is not for everyone.

Best regards,

Paulus