Delete a record using MXAE-API
function deleteOneRecord($programCodeOrID, $recId) {
$delete = false;
$program = new mxProgram;
$program->getBy(array('id' => $programCodeOrID, 'code' => array($programCodeOrID, '=', 'OR')));
$ac = $program->getArticle($recId);
$delete = $ac->del();
//echo $ac->client;
return $delete;
}
Comments
Post a Comment