Book a Demo

Author Topic: customizing the requirement fields  (Read 3109 times)

karomann

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
customizing the requirement fields
« on: November 19, 2007, 04:57:11 am »
Hi,
is there any way to change the possible values for the priority and difficulty fields of the requirement 'class'?

thomaskilian

  • Guest
Re: customizing the requirement fields
« Reply #1 on: November 19, 2007, 05:00:20 am »
It looks like these are hard coded. I thought there were tables for these, but I could not find them back...
« Last Edit: November 19, 2007, 05:14:21 am by thomaskilian »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: customizing the requirement fields
« Reply #2 on: November 19, 2007, 05:38:28 am »
I think this came up a long time ago folks.

IIRC Thomas is quite correct; the answer from Sparx was that these two (perhaps one other) properties were hard-wired.

I got the impression they were not about to change that anytime soon. Given that such a change would likely require a new schema I doubt (entirely without proof) that we'll get any action on such a change until at least some "future major version" change. Perhaps 8.0?

David

PS: I wonder what would happen if you tweaked the underlying data and added your own values. Would they appear in the class properties dialog? [If so, you'd almost certainly trash your changes if you used the drop-down to set a value.] Also, would project integrity checks flag this as an error?

PPS: I tried adding a new entry to t_complexitytypes. It does not appear in the properties drop-down of a class. For that matter, nor do the same entries as the table had previously. If I tweak the database to store the new entry's ID in a class record, that class has a blank complexity when I open the properties dialog.

As to priority, I could not see it on a class dialog (which doesn't imply it was ever there at all). So I did not try anything in that area.
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: customizing the requirement fields
« Reply #3 on: November 19, 2007, 02:00:19 pm »
Quote
PPS: I tried adding a new entry to t_complexitytypes. It does not appear in the properties drop-down of a class. For that matter, nor do the same entries as the table had previously. If I tweak the database to store the new entry's ID in a class record, that class has a blank complexity when I open the properties dialog.


Try creating a tagged value type with:

Type=Enum;
List=ComplexityType;

See also the help file. That is the only place where the t_complexitytypes table is used (by an odd coincidence, I was searching the source code for this only yesterday).

Note that rather than modify the database directly, you can import complexity types as reference data (export as reference data first to see what the format is).
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: customizing the requirement fields
« Reply #4 on: November 20, 2007, 05:05:58 am »
Now I remember.

Thanks Neil.

Karomann and Thomas, this doesn't quite do what you described, at least not in the same way. Still, it might work well enough. What say?

David
No, you can't have it!

thomaskilian

  • Guest
Re: customizing the requirement fields
« Reply #5 on: November 20, 2007, 07:57:27 am »
Maybe the Tags could serve as a more general approach. Thus it would make sense to clean up the properties pane (like version number, creator and all that stuff I never use).