Hi,
I think that error caused by kind of conflict when you tried to update single object in same time within different sessions (1st session caused by z_checkin_comments attribute update via web, other session caused by "api" call).
firstly, you can try to get actual error message:
send_wait(0, top_object(), "call_attr", "api", "generic_activity_log", who, persistent_id, "test description", "LOG", 0, 0);
int msg_i;
for (msg_i=0;msg_i<msg_length();msg_i++) {
logf(ERROR, "msg[%d]: %s", msg_i, msg[msg_i]);
}
then to resolve your problem you can try to "split" your session, you can use ON_POST_VAL or POST_CI triggers:
using ON_POST_VAL mod file will not work with custom created attribute, so you need to add trigger to attribute via WSP or maj file:
OBJECT chg {
ATTRIBUTES Change_Request {
z_checkin_comments STRING{
ON_POST_VAL z_cico_log() 62175 ;
};
};
};
spl will be same instead of macro name:
chg.z_checkin_comments::z_cico_log(...) {
<code>
}
Regards,
cdtj