Author Topic: Wrong type of element added to the diagram  (Read 2865 times)

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Wrong type of element added to the diagram
« on: April 27, 2022, 10:52:36 pm »
This is a weird one...

I have created an MDG that offers on option of three types of element from a hidden sub-menu (i.e. you drag the element onto the diagram and a menu offers a choice of three types of that element).

I have two different models on a database server. One works perfectly (dropping each of the three stereotypes of my element as selected), but on the other when one of the types is chosen from the hidden sub-menu, what is actually added to the diagram is one of the others with a different stereotype! The other two of the tree types are added correctly.

It also works correctly on an EAPX model (sample of one model).

It seems like something to do with the model is affecting the result of the MDG, which is not really ideal. While this is only a test model (that I use to test my MDG works) I'd like to understand what has caused it, and ideally how it could be fixed. In the medium term I will delete the whole model so that I can test the next version of the MDG, which may or may not resolve it (if there is something in the database then deleting everything from the project browser may not do so). I would try to synchronise the stereotype, but for hidden sub-menus I cannot find a way to do that (right-click on the toolbox does not give the synchronise option).

Has anyone any bright ideas on the cause and/or resolution?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Wrong type of element added to the diagram
« Reply #1 on: April 28, 2022, 03:30:40 am »
That's really hard to tell. The best would be if you turn to Sparx' support via mail.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Wrong type of element added to the diagram
« Reply #2 on: April 28, 2022, 07:51:39 am »
It's possible that the model where it doesn't work has an older version of your technology loaded, possibly in addition to the latest version. Look in the Resources view (it's a tab on the Browser window) and also look in the Manage Technologies dialog.
The Sparx Team
[email protected]

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: Wrong type of element added to the diagram
« Reply #3 on: April 28, 2022, 05:31:21 pm »
KP, No only one listed in either location (and in the Resources view, right-click and locate matches the location defined in the Manage Technologies dialog). I don't import the technology but point EA to a path on a file share.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Wrong type of element added to the diagram
« Reply #4 on: April 28, 2022, 07:16:21 pm »
I do that too but often get fooled by using models that DO have imported technologies. You should cross check that.

q.

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: Wrong type of element added to the diagram
« Reply #5 on: April 28, 2022, 10:29:16 pm »
I thought that was KP's point about checking the Resources window (if I had by mistake importing the MDG then would it not be listed there as a second one?). I also never import the MDG and it's my model. (honestly) I agree there are times when I've done things and forgotten but certain not this time!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Wrong type of element added to the diagram
« Reply #6 on: April 28, 2022, 11:37:59 pm »
Yes, it was KP's point. But how often did I just feel I did a check but actually had not. There are quite some strange things inside EA I ever stumbled over. So either it's a lack of sleep/coffee or you have to reach out for their mail support. That helped me all times (though I had strange encounters there too).

q.