Here is the spel and mod file I put together to automatically update the acknowledge date. I wouldn't mind to have it critiqued, @ArunavaS. Let me know if there is a better way to do this.
Spel file
cr::zSetAckDate(...)
{
string Method;
Method ="zSetAckDate";
duration zAck;
zAck=now();
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, "zAcknowledge_Date", zAck);
}
mod file
////////////////////////////////////////////////////////////////////////
// Factory: cr
////////////////////////////////////////////////////////////////////////
OBJECT cr {
TRIGGERS {
POST_VALIDATE zSetAckDate() 10004 FILTER(status { -> 'ACK'} && EVENT("INSERT UPDATE"));
};
};
Edit: Changed the zAck=last_mod_dt; line to zAck=now();