As i said you need to:
1. Create Local String attribute
2. Creta trigger that on insert will fire spel that will set value for that attribute
e.g. for cr:
OBJECT cr {
ATTRIBUTES Call_Req {
zinitial LOCAL STRING ; // initiated from TR LOG ST activity
};
TRIGGERS {
PRE_VALIDATE zset_local() 4014 FILTER(EVENT("INSERT"));
};
};
and here is example of spel code:
zset_local(...)
{
uuid who;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
send_wait(0, top_object(), "call_attr", "api", "update_object_super", who, persistent_id, 0, "zinitial ", "1");
}
Since attribute is local it will have value only when ticket is saved for the first time
if ("$prop.form_name_3" != "edit" && $args.zinitial != "") {
ahdframe.AlertMsg = ahdframe.AlertMsg + "<br>" + "Request Tickets are opened with a default 'Requested Completion Date' set for the next 48 hours in Service Desk. If you need to change the 'Requested Completion Date', you can do so by changing the date after the ticket is saved";
}