Book a Demo

Author Topic: Can MDG (.xml) file be put on DB Server?  (Read 4800 times)

andrewd

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Can MDG (.xml) file be put on DB Server?
« on: August 29, 2015, 12:26:21 am »
Our model is on a SQL server, but now I want to give access to custom queries to all users.  I created a MDG technology file (.xml) to hold the queries, but I would like to put them on the server so that everyone that opens the model automatically has the queries loaded.

Any suggestions?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Can MDG (.xml) file be put on DB Server?
« Reply #1 on: August 29, 2015, 04:39:12 am »
Not possible. The MDG must be a shared file. You can distribute %appdata%\Sparx Systesm\EA\Search Data or use VC (external to EA) to distribute it to the users.

q.

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Can MDG (.xml) file be put on DB Server?
« Reply #2 on: August 29, 2015, 01:48:55 pm »
I haven't tried this with search queries but it works quite well for sharing common stereotypes, diagrams and palettes etc.

The mdg xml can be exposed through a web server.  A user can then point to the http url when setting up access to the mdg technology on the EA client - a one time operation.  

The nice thing about this method is that the versions of the mdg on users machines are automatically updated if the file is updated on the web server.  

A file share can also be used to share the mdg xml.

Stan.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Can MDG (.xml) file be put on DB Server?
« Reply #3 on: August 31, 2015, 08:35:40 am »
Depending on your version, you have 'Import MDG Technology', which allows 'Import to Model' or 'Import to User'.

andrewd

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Can MDG (.xml) file be put on DB Server?
« Reply #4 on: September 19, 2015, 04:59:56 am »
I have version 12.0 and was able to select "Import to Model".  After that I can see my MDG technology under the "Extensions -> MDG Technologies" and it also shows up as a category under the search menu "Edit -> Search In Model".  The problem is that after I close the model and re-open it the search is no longer under that search menu.  My MDG technology still shows up in the list under "Extensions -> MDG Technologies", but the system acts as if the search is not there.

andrewd

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Can MDG (.xml) file be put on DB Server?
« Reply #5 on: September 19, 2015, 05:04:20 am »
I also have a strange problem where some of my queries show up twice when I am viewing the relationship matrix and I try to select  "Apply Model Search" in the "source" box.  I also went to the search menu "Edit -> Search In Model" and tried to delete the search.  The system asks me to confirm the delete of the search and it seems to work, but when I look at the list of searches the "deleted" search is still there.