Skip to content

Transform Model Attributes ​

Via the menu item "Transform model attributes" in the menu "Model management", the format of the model attributes "Creation date" and "Date last changed" is changed to "new" and the values of the model attributes are transformed to a new date format. The format of these model attributes can be set to the new date format in the application library (by using the AdoScript command DATETIME_FORMAT). In this format - on the contrary to the old format - first the year, then the month and then the day is displayed. Using the new format has the advantage, that values of these two model attributes can be sorted and compared in a meaningful way. To transform the values of these two model attributes for all existing models, it is in most cases necessary to execute the function "Transform model attributes", because the settings of DATETIME_FORMAT behave as follows:

  • If the format is set to "new" in an application library, the model attributes "Creation date" and "Date last changed" will be set to the new format when importing or creating models. So if existing models are migrated to an application library where the new format is set, after migration all models have both model attributes set to the new format.

  • If existing models are changed (saved), "Date last changed" is saved in the new format.

  • If models in an already existing database have not been modified, changing the attribute to the new format in the application library does not change the format of the model attributes of existing models. In this case the function "Transform model attributes" can be used if the format of the two model attributes should be transformed to the new one for all models of a selected application library.