Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: satrman on August 04, 2022, 07:41:56 pm

Title: DateTime format for in Model Add-in properties XML
Post by: satrman on August 04, 2022, 07:41:56 pm
Hi, trying to find better documentation for AddPropertiesTab (string TabName, string PropXML)
There is only sample Properties XML, but cannot find complete list of allowed data types.
Particullary I need to display DateTime format
https://sparxsystems.com/enterprise_architect_user_guide/15.2/automation/repository3.html
Can anyone help?

Thanx

MiloŇ° L.
Title: Re: DateTime format for in Model Add-in properties XML
Post by: satrman on August 10, 2022, 10:27:04 pm
This code pretty did the job (left it as text field a let JavaScript function do the formating)

xml+="<property id='CreatedDate' type='text' readonly='true' >";
xml+="<name>Created Date</name><value>" + theElement.Created.toLocaleString() + "</value></property>";