Hi Vysakh_N,
Here's an example of how to accomplish this..
- Add zInit_Status_Change to cr schema as a Date field
- Save and publish
- Create a .spl file with the following contents and place in nx_root/site/mods/magic
cr::zSetInitStatusChange(...)
{
string method;
int activityDate;
method ="cr::zSetInitStatusChange";
logf(MILESTONE, "%s started", method);
activityDate = (int)((date)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, "zInit_Status_Change", activityDate);
logf(MILESTONE, "%s ended", method);
}
4. Create a .mod file with the following contents and place in nx_root/site/mods/magic
MODIFY cr POST_VALIDATE zSetInitStatusChange() 10011 FILTER(status { 'OP' -> } && EVENT("INSERT UPDATE"));
5. Add read only date to detail_in form
<PDM_MACRO name=dtlDateReadonly hdr="Initial Status Change" attr=zInit_Status_Change>
6. Restart SDM services and test