Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: wikitect 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.
-
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;