I Need to make attachment required for some request area
I created spel file
cr::z_req_attmnt(...) {
if (category == "pcat:5109") {
send_wait(0, top_object(), "call_attr", "lrel_attachments_requests", "sync_fetch", "STATIC", format("cr = '%s'", persistent_id), -1, 0);
if (msg[1] == 0) {
set_error(1);
set_return_data(format("Attachments are required for [%s] area", category.sym));
return;
}
}
}
and created mod file
MODIFY cr POST_VALIDATE z_req_attmnt() 1000 FILTER (EVENT("INSERT"));
and add them in majic folder
Its