Book a Demo

Author Topic: How to make a relation between two releations  (Read 5172 times)

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
How to make a relation between two releations
« on: December 05, 2014, 04:45:49 am »
I want to make a relation between existing relation
like this in the following image
 

Thanks
« Last Edit: December 05, 2014, 04:47:07 am by dangel »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to make a relation between two releations
« Reply #1 on: December 05, 2014, 06:36:51 am »
You can attach a note to multiple connectors.

q.

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How to make a relation between two releations
« Reply #2 on: December 05, 2014, 07:52:21 am »
I did,  but  could not find the related connectors in which tables can I determine the fields of that points on the relation ?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to make a relation between two releations
« Reply #3 on: December 05, 2014, 09:19:27 am »
Right-click one of your associations, choose "Attach Note or Constraint", in the dialog set Link Type to "Constraint" and select the two associations that you want the constraint attached to, click OK, double-click the created Constraint element to open its properties, type in "XOR", click OK, resize, move.
« Last Edit: December 05, 2014, 09:20:09 am by KP »
The Sparx Team
[email protected]

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How to make a relation between two releations
« Reply #4 on: December 05, 2014, 06:22:49 pm »
Thanks a lot that was helpful, now where can I find the related tables/fields of this relation source and target object

Regards,

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to make a relation between two releations
« Reply #5 on: December 05, 2014, 10:00:47 pm »
It's in t_diagramobjects.ObjectStyle. The Note has idref=<objectid>; entries for the connected elements.

q.
« Last Edit: December 05, 2014, 10:01:29 pm by qwerty »

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How to make a relation between two releations
« Reply #6 on: December 06, 2014, 02:55:44 am »
wow, cool,  thank you so much :)