Author Topic: DateTime format for in Model Add-in properties XML  (Read 355 times)

satrman

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
DateTime format for in Model Add-in properties XML
« 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.

satrman

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: DateTime format for in Model Add-in properties XML
« Reply #1 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>";