Book a Demo

Author Topic: Attribute Length / Precision & Scale in the GUI  (Read 6763 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Attribute Length / Precision & Scale in the GUI
« on: November 16, 2013, 12:44:02 am »
Hey hey hey,


Defining your own language and primitive datatypes allows you to specify size properties, either Length or Precision & Scale.
But they're absent from the attribute properties dialog, and they're not shown in diagrams. Unless you're dealing with a database table / columns.

However, plenty of languages include a decimal type, and fixed-length strings, well fuggeddaboudit.

So how's about adding Length / Precision & Scale to the element properties dialog (Detail page, there's space) and show them in the diagrams as well?

They should only be enabled / shown when the datatype has the corresponding size property, of course.

Cheers,


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

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #1 on: December 11, 2013, 10:42:10 am »
Note sure if these will help

http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/predefinedtaggedvaluetypes.html

Somewhere (a white paper?, I can't track it down) I saw a reference to using a tag (named "Length"?) to specify the length of an attribute
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #2 on: December 11, 2013, 10:58:28 pm »
I can achieve the same thing with tags, but it's not really what I'm after.

There are in fact Length, Precision and Scale columns in the t_attribute table, but they're only used if the containing element is a database table.

Since you can specify length / precision & scale in your own attribute type definitions, you should be able to see them in the dialog is what I'm saying.
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #3 on: December 11, 2013, 11:36:16 pm »
I would not like to see such things hard wired in the properties. From my point of view they are candidates for TVs. Probably even for tables. Likely the whole database engineering thingy in EA was a bad move. Back in the beginning of the millennium when EA grew up it might have looked like a good idea. But probably a MDG solution would be better.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #4 on: December 16, 2013, 11:59:16 pm »
This argument essentially boils down to "if database engineering had been designed differently, tagged values would have been better." Well, fine - except the implementation is what it is.

Length and precision/scale are implemented as columns in the database. They are also available for specification in code engineering / database datatypes, it's just that for code engineering types, they're broken.

The reasonable expectation for someone who designs a set of code engineering datatypes, some of which include length or precision, is for these properties to be visible in the attribute dialog.

It shouldn't be an unreasonably hard fix either, seeing as this is how it already works for database types.
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #5 on: December 17, 2013, 08:19:22 am »
Quote
it's just that for code engineering types, they're broken.
Personally I wouldn't put it like that, and I would wager there are many more users who would get frustrated at the extra fields cluttering the dialog than those who wish they had them available.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #6 on: December 18, 2013, 07:25:29 pm »
Quite possibly. I only speak for myself, of course.

Does this mean they will be removed from the Programming Language Datatypes dialog as well then?
My theories are always correct, just apply them to the right reality.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Attribute Length / Precision & Scale in the GU
« Reply #7 on: December 19, 2013, 06:48:44 am »
Quote
Personally I wouldn't put it like that, and I would wager there are many more users who would get frustrated at the extra fields cluttering the dialog than those who wish they had them available.
But not me, EA is a complex tool, and this is the first time I have heard the excuse that a feature has been left off because it is hard to use, or it makes it simpler.
I too would like to see Uffe's suggestion adopted.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.