Hello everybody!
Once a year it is necessary to write scripts therefore probably I ask a simple question. For ARIS-object .Attribute (Constants.AT_LAST_CHNG_2, g_nloc).getValue() returns value of Object type but in Help it is specified - String. So Date(Object) transformation doesn't work. How to get Date from the date attribute? Vladimir
Vladimir Bis on
Hi Vladimir,
try
var g_nLoc = Context.getSelectedLanguage(); var oModels = ArisData.getSelectedModels(); var d = new java.text.SimpleDateFormat("dd.MM.yyyy HH:mm"); d = d.format(oModels[0].Attribute(Constants.AT_LAST_CHNG_2, g_nLoc).MeasureValue()); Dialogs.MsgBox(d);