Author Topic: Using DateTime Tagged Value Type in Own Profile  (Read 3439 times)

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Using DateTime Tagged Value Type in Own Profile
« on: July 28, 2009, 11:01:48 pm »
I'd like a decent way of being able to populate a date field in my profile, in fact just like the one using the DateTime type when creating a tagged value type using Settings | UML. This provides a nice pop up calendar mechanism.

Is there any way I can get the type of an attribute of my stereotype to use this built-in value type? I've tried setting the type to DateTime to no avail.  At the moment I've had to leave it as a string but would much rather have a more consistent method of entering date information.

Thanks.
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Re: Using DateTime Tagged Value Type in Own Profil
« Reply #1 on: August 19, 2009, 05:08:02 am »
Thought I'd best provide the answer just in case anyone else needs it.

The secret is that you need to create a tagged value (Settings | UML) of DateTime type that has the same name as the attribute that you want to have the pop-up calendar.

e.g. MyClass

attribute: startDate = date

in Settings | UML | Tagged Value Types


TagName: startDate

Detail: Type=DateTime;Stereotypes=stereotype1,stereotype2;

======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak