Book a Demo

Author Topic: User defined data within EA projects  (Read 3445 times)

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
User defined data within EA projects
« on: January 14, 2014, 03:36:19 am »
Hi
I am currently writing a custom add-in which will allow my developers to link their EA projects to databases within our requirements management tool, allowing the syncing of requirements.
As part of the log in process for the requirements management tool I need to specify the name of the specific database from which the requirements are retrieved. I was wondering whether there is a way of storing the database name with the EA project? Thus, removing the need to re-select the database every time the EA project is opened. I have though about using a tagged value but I do not want the database name to be published or manually editable if I can avoid it!?
Thanks
« Last Edit: January 14, 2014, 03:36:41 am by matootell »

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: User defined data within EA projects
« Reply #1 on: January 14, 2014, 04:40:25 am »
My approach would be to let my addin manage your database name (or any other settings) for example by
  • using the addin application settings - which get stored under user settings
  • a config file that you deploy with your addin installer and read at runtime
  • a central config file e.g. on a server that your addin could make a look up (this later would give you the option to make changes and the users immediately have access to them without the potential need to redeploy

Just some idea.
« Last Edit: January 14, 2014, 04:41:07 am by MrWappy »
EXploringEA - information, utilities and addins

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: User defined data within EA projects
« Reply #2 on: January 15, 2014, 06:22:38 pm »
My preferred approach would be to save the name of the database in a user config file.
You can distribute the default name for the database in the default config file you install when the add-ins gets installed.
Then you could allow the user to change it in an Options form or something.

I've done exactly that with the settings for the EA Navigator.

See https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/blob/master/EANavigator/NavigatorSettings.cs

Another option would be to store that info in the notes of the model root package.
For some reason these notes never get shown in the GUI, but you can easily edit them using an add-in.

But I still like the config file option better.

Geert