Book a Demo

Author Topic: Link to Element Feature  (Read 4383 times)

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Link to Element Feature
« on: November 16, 2015, 08:58:27 pm »
Hi,

is it possible to link attributes within the same class ?

Thanks,

Michel
« Last Edit: November 16, 2015, 08:58:48 pm by michel777 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Link to Element Feature
« Reply #1 on: November 16, 2015, 09:42:46 pm »
Have you tried it? :D

Geert

Edit:
I just did and it doesn't work  :-?
« Last Edit: November 16, 2015, 09:45:29 pm by Geert.Bellekens »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Link to Element Feature
« Reply #2 on: November 16, 2015, 09:51:42 pm »
Attributes in a class are linked due to the fact that they are inside the same class. And there they should have different purpose.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Link to Element Feature
« Reply #3 on: November 17, 2015, 01:27:30 am »
Hi Michel,


The context menu item is disabled on self-referencing connectors.

I tried to hack my way around by creating a copy of the class, drawing the connector between them, linking to two different attributes, then moving one end of the connector to refer back to the original class -- no go. The end that was linked to an attribute becomes unlinked.

It might be possible to achieve with a more involved hack which bypasses the GUI and updates the database directly, but I'm thinking that if they've gone to the trouble of implementing the unlink-on-connector-move there's probably a good reason.

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Link to Element Feature
« Reply #4 on: November 17, 2015, 03:56:43 am »
Uffe: thanks a lot for your effort !

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Link to Element Feature
« Reply #5 on: November 17, 2015, 07:37:19 am »
Quote
It might be possible to achieve with a more involved hack which bypasses the GUI and updates the database directly, but I'm thinking that if they've gone to the trouble of implementing the unlink-on-connector-move there's probably a good reason.

To understand recursion, first you have to understand recursion?