Book a Demo

Author Topic: Formatting table entities  (Read 2460 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Formatting table entities
« on: August 07, 2013, 10:20:58 am »
I'm doing some data modelling (Data vault with hubs, links, and sats).
We are modelling using tables (a stereotype of class).
We have a naming convention of hub_name, lnk_name, sat_name.

I'm looking for a means of automatically applying a different background colour for each of hub, lnk, and sat.

I'd appreciate it if you could suggest an approach.

I tried creating a hub stereotype of table, but the stereotype reverted to a class (loosing all the table datamodelling customisation).
I tried creating a hub stereotype of class, but I don;t understand how to obtain the table entity behaviour.

« Last Edit: August 07, 2013, 10:21:17 am by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Formatting table entities
« Reply #1 on: August 07, 2013, 08:10:31 pm »
You probably need to catch the OnPostNewElement event and color the element there.

q.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Formatting table entities
« Reply #2 on: August 08, 2013, 10:04:53 am »
Urrk, Yes, thanks, I was hoping not to have to delve into the internals or scripting, thats why I looked at stereotyping, but it seems table steroetype has a built in secret sauce
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.