Here is the code to bypass validation of DocumentHash when updating a record using AIF
docVersionXml = _axInternalBase.parm_DocumentHash();
if (docVersionXml)
{
docVersionDb = document.getRecordHash();
if (docVersionDb != docVersionXml)
{
throw error("@SYS106156");
}
}
else
{
throw error(strfmt("@SYS26332", AxInternalBase::stripParm(methodstr(AxInternalBase, parm_DocumentHash))));
}
Enjoy!
No comments:
Post a Comment